From 67544275fabf0a4444db900a1814e0f51aa852ec Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sun, 7 Feb 2016 02:16:48 +0100 Subject: [PATCH] show cwd, pid, sys.argv, ssh original command below tracebacks, fixes #637 --- borg/helpers.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/borg/helpers.py b/borg/helpers.py index 4f230e6d1..a710c01a5 100644 --- a/borg/helpers.py +++ b/borg/helpers.py @@ -989,7 +989,10 @@ def sysinfo(): info.append('Platform: %s' % (' '.join(platform.uname()), )) if sys.platform.startswith('linux'): info.append('Linux: %s %s %s LibC: %s %s' % (platform.linux_distribution() + platform.libc_ver())) - info.append('Borg: %s Python: %s %s' % (borg_version, platform.python_implementation(), platform.python_version())) + info.append('Borg: %s Python: %s %s' % (borg_version, platform.python_implementation(), platform.python_version())) + info.append('PID: %d CWD: %s' % (os.getpid(), os.getcwd())) + info.append('sys.argv: %r' % sys.argv) + info.append('SSH_ORIGINAL_COMMAND: %r' % os.environ.get('SSH_ORIGINAL_COMMAND')) info.append('') return '\n'.join(info)