mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
do not log system logs events.
This commit is contained in:
parent
f067fe9d62
commit
3e05542205
@ -1,4 +1,5 @@
|
|||||||
import EventEmitter from 'eventemitter3'
|
import EventEmitter from 'eventemitter3'
|
||||||
|
import { SYSTEM_LOGS } from '../types/events'
|
||||||
import { Logger } from '../utils/logger'
|
import { Logger } from '../utils/logger'
|
||||||
|
|
||||||
export interface NekoWebSocketEvents {
|
export interface NekoWebSocketEvents {
|
||||||
@ -71,7 +72,7 @@ export class NekoWebSocket extends EventEmitter<NekoWebSocketEvents> {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
this._log.debug(`sending websocket event`, { event, payload })
|
if (event != SYSTEM_LOGS) this._log.debug(`sending websocket event`, { event, payload })
|
||||||
this._ws!.send(JSON.stringify({ event, payload }))
|
this._ws!.send(JSON.stringify({ event, payload }))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user