mirror of https://github.com/borgbackup/borg.git
remote: log SSH command line at debug level
This commit is contained in:
parent
b206aa771c
commit
b6fa8629db
|
@ -13,9 +13,12 @@ from . import __version__
|
||||||
from .helpers import Error, IntegrityError, sysinfo
|
from .helpers import Error, IntegrityError, sysinfo
|
||||||
from .helpers import replace_placeholders
|
from .helpers import replace_placeholders
|
||||||
from .repository import Repository
|
from .repository import Repository
|
||||||
|
from .logger import create_logger
|
||||||
|
|
||||||
import msgpack
|
import msgpack
|
||||||
|
|
||||||
|
logger = create_logger(__name__)
|
||||||
|
|
||||||
RPC_PROTOCOL_VERSION = 2
|
RPC_PROTOCOL_VERSION = 2
|
||||||
|
|
||||||
BUFSIZE = 10 * 1024 * 1024
|
BUFSIZE = 10 * 1024 * 1024
|
||||||
|
@ -185,6 +188,7 @@ class RemoteRepository:
|
||||||
env.pop('LD_LIBRARY_PATH', None)
|
env.pop('LD_LIBRARY_PATH', None)
|
||||||
env.pop('BORG_PASSPHRASE', None) # security: do not give secrets to subprocess
|
env.pop('BORG_PASSPHRASE', None) # security: do not give secrets to subprocess
|
||||||
env['BORG_VERSION'] = __version__
|
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.p = Popen(borg_cmd, bufsize=0, stdin=PIPE, stdout=PIPE, stderr=PIPE, env=env)
|
||||||
self.stdin_fd = self.p.stdin.fileno()
|
self.stdin_fd = self.p.stdin.fileno()
|
||||||
self.stdout_fd = self.p.stdout.fileno()
|
self.stdout_fd = self.p.stdout.fileno()
|
||||||
|
|
Loading…
Reference in New Issue