skip failing tmux init commands (fixes #300)

This commit is contained in:
Eugene Pankov
2018-03-11 20:01:48 +01:00
parent 3b43b3914b
commit 9d7bf2ae44
2 changed files with 16 additions and 6 deletions

View File

@@ -41,7 +41,9 @@ export class Logger {
doLog (level: string, ...args: any[]) {
console[level](`%c[${this.name}]`, 'color: #aaa', ...args)
this.winstonLogger[level](...args)
if (this.winstonLogger) {
this.winstonLogger[level](...args)
}
}
debug (...args: any[]) { this.doLog('debug', ...args) }