mirror of
https://github.com/borgbackup/borg.git
synced 2025-03-15 00:21:56 +00:00
show cwd, pid, sys.argv, ssh original command below tracebacks, fixes #637
This commit is contained in:
parent
94451cd2e8
commit
67544275fa
1 changed files with 4 additions and 1 deletions
|
@ -989,7 +989,10 @@ def sysinfo():
|
||||||
info.append('Platform: %s' % (' '.join(platform.uname()), ))
|
info.append('Platform: %s' % (' '.join(platform.uname()), ))
|
||||||
if sys.platform.startswith('linux'):
|
if sys.platform.startswith('linux'):
|
||||||
info.append('Linux: %s %s %s LibC: %s %s' % (platform.linux_distribution() + platform.libc_ver()))
|
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('')
|
info.append('')
|
||||||
return '\n'.join(info)
|
return '\n'.join(info)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue