Catch error when SSH server fails to start

This commit is contained in:
Asher
2020-03-24 17:37:34 -05:00
parent f5f29c0120
commit d1687c1533
2 changed files with 6 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ export class SshProvider extends HttpProvider {
this.sshServer = new ssh.Server({ hostKeys: [hostKey] }, this.handleSsh)
this.sshServer.on("error", (err) => {
logger.error(`SSH server error: ${err.stack}`)
logger.trace(`SSH server error: ${err.stack}`)
})
}