Skip to content
Snippets Groups Projects
Commit 82b9136c authored by echicken's avatar echicken :chicken:
Browse files

Whoops

parent 4407b3b3
No related branches found
No related tags found
No related merge requests found
......@@ -79,7 +79,7 @@ export default abstract class Device extends js.global.EventEmitter {
protected log(level: number, msg: string, time?: number, source?: string) {
let _msg = '';
if (js.global.server === undefined) msg += js.global.strftime('%Y-%m-%d %H:%M:%S ');
if (js.global.server === undefined) _msg += js.global.strftime('%Y-%m-%d %H:%M:%S ');
_msg += `${this.deviceTag} device ${this.configId}: ${msg}`;
this.emit('log', level, _msg, time, source);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment