Add "DEBUG_SSH2" flag

feature/ssh-config
Kelvin Schoofs 4 years ago
parent 628de09d38
commit 184177a2ff

@ -235,7 +235,7 @@ export async function createSSH(config: FileSystemConfig, sock?: NodeJS.Readable
});
try {
const finalConfig: ConnectConfig = { ...config, sock, ...DEFAULT_CONFIG };
if (config.debug) {
if (config.debug || getFlag('DEBUG_SSH2') !== undefined) {
const scope = Logging.scope(`ssh2(${config.name})`);
finalConfig.debug = (msg: string) => scope.debug(msg);
}

Loading…
Cancel
Save