Browse Source

Logger added instead of console.log

pull/207/head
Mihir Kumar 6 years ago
committed by GitHub
parent
commit
2582c01e90
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/server/command.ts

4
src/server/command.ts

@ -1,5 +1,7 @@
import * as url from 'url';
import { Socket } from 'socket.io';
import logger from './logger';
import { SSH } from './interfaces';
const localhost = (host: string): boolean =>
@ -69,7 +71,7 @@ function sshOptions(
'-o',
`PreferredAuthentications=${auth}`,
];
console.log(`Authentication Type: ${auth}`)
logger.info(`Authentication Type: ${auth}`);
if (key) {
return sshRemoteOptsBase.concat(['-i', key, cmd]);
}

Loading…
Cancel
Save