File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,11 @@ const main = async (args: Args): Promise<void> => {
73
73
let sshPort = ""
74
74
if ( ! args [ "disable-ssh" ] && options . sshHostKey ) {
75
75
const sshProvider = httpServer . registerHttpProvider ( "/ssh" , SshProvider , options . sshHostKey as string )
76
- sshPort = await sshProvider . listen ( )
76
+ try {
77
+ sshPort = await sshProvider . listen ( )
78
+ } catch ( error ) {
79
+ logger . warn ( `SSH server: ${ error . message } ` )
80
+ }
77
81
}
78
82
79
83
const serverAddress = await httpServer . listen ( )
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export class SshProvider extends HttpProvider {
20
20
this . sshServer = new ssh . Server ( { hostKeys : [ hostKey ] } , this . handleSsh )
21
21
22
22
this . sshServer . on ( "error" , ( err ) => {
23
- logger . error ( `SSH server error: ${ err . stack } ` )
23
+ logger . trace ( `SSH server error: ${ err . stack } ` )
24
24
} )
25
25
}
26
26
You can’t perform that action at this time.
0 commit comments