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
@ -33,7 +33,7 @@ export class NekoLogger extends Logger {
|
||||
if (!this._ws.connected || !this._interval) {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
if (this._logs.length > 0) {
|
||||
this._ws.send(EVENT.SYSTEM_LOGS, this._logs)
|
||||
}
|
||||
|
@ -1,4 +1,5 @@
|
||||
import EventEmitter from 'eventemitter3'
|
||||
import { SYSTEM_LOGS } from '../types/events'
|
||||
import { Logger } from '../utils/logger'
|
||||
|
||||
export interface NekoWebSocketEvents {
|
||||
@ -71,7 +72,7 @@ export class NekoWebSocket extends EventEmitter<NekoWebSocketEvents> {
|
||||
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 }))
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user