diff options
author | Michael Mercier <michael.mercier@ryax.tech> | 2021-03-15 18:39:26 +0100 |
---|---|---|
committer | Michael Mercier <michael.mercier@ryax.tech> | 2021-03-15 18:48:34 +0100 |
commit | 50cbafc690e5692a16148dbde9de680be70ddbd1 (patch) | |
tree | c07b6454aa8bd3050020edcc114d5f33b984f975 /git/cmd.py | |
parent | f7968d136276607115907267b3be89c3ff9acd03 (diff) | |
download | gitpython-50cbafc690e5692a16148dbde9de680be70ddbd1.tar.gz |
Add more test and remove password also from error logs
Diffstat (limited to 'git/cmd.py')
-rw-r--r-- | git/cmd.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -82,8 +82,8 @@ def handle_process_output(process, stdout_handler, stderr_handler, line = line.decode(defenc) handler(line) except Exception as ex: - log.error("Pumping %r of cmd(%s) failed due to: %r", name, cmdline, ex) - raise CommandError(['<%s-pump>' % name] + cmdline, ex) from ex + log.error("Pumping %r of cmd(%s) failed due to: %r", name, remove_password_if_present(cmdline), ex) + raise CommandError(['<%s-pump>' % name] + remove_password_if_present(cmdline), ex) from ex finally: stream.close() |