mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-23 22:51:35 +00:00
remote: log SSH command line at debug level
This commit is contained in:
parent
b206aa771c
commit
b6fa8629db
1 changed files with 4 additions and 0 deletions
|
@ -13,9 +13,12 @@
|
|||
from .helpers import Error, IntegrityError, sysinfo
|
||||
from .helpers import replace_placeholders
|
||||
from .repository import Repository
|
||||
from .logger import create_logger
|
||||
|
||||
import msgpack
|
||||
|
||||
logger = create_logger(__name__)
|
||||
|
||||
RPC_PROTOCOL_VERSION = 2
|
||||
|
||||
BUFSIZE = 10 * 1024 * 1024
|
||||
|
@ -185,6 +188,7 @@ def __init__(self, location, create=False, exclusive=False, lock_wait=None, lock
|
|||
env.pop('LD_LIBRARY_PATH', None)
|
||||
env.pop('BORG_PASSPHRASE', None) # security: do not give secrets to subprocess
|
||||
env['BORG_VERSION'] = __version__
|
||||
logger.debug('SSH command line: %s', borg_cmd)
|
||||
self.p = Popen(borg_cmd, bufsize=0, stdin=PIPE, stdout=PIPE, stderr=PIPE, env=env)
|
||||
self.stdin_fd = self.p.stdin.fileno()
|
||||
self.stdout_fd = self.p.stdout.fileno()
|
||||
|
|
Loading…
Reference in a new issue