remote: log SSH command line at debug level

This commit is contained in:
Marian Beermann 2017-01-12 02:39:56 +01:00
parent b206aa771c
commit b6fa8629db
1 changed files with 4 additions and 0 deletions

View File

@ -13,9 +13,12 @@ from . import __version__
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 @@ class RemoteRepository:
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()