log level.
This commit is contained in:
parent
2289d79c28
commit
437fa4c17b
@ -79,6 +79,12 @@ class BotsCtl {
|
|||||||
this.logger.debug(`ModerationBot stdout: ${data as string}`)
|
this.logger.debug(`ModerationBot stdout: ${data as string}`)
|
||||||
})
|
})
|
||||||
moderationBotProcess.stderr?.on('data', (data) => {
|
moderationBotProcess.stderr?.on('data', (data) => {
|
||||||
|
// change error level for non-relevant errors:
|
||||||
|
data = data.toString()
|
||||||
|
if (/Warning.*NODE_TLS_REJECT_UNAUTHORIZED.*'0'.*TLS/.test(data)) {
|
||||||
|
this.logger.debug(`ModerationBot stderr: ${data as string}`)
|
||||||
|
return
|
||||||
|
}
|
||||||
this.logger.error(`ModerationBot stderr: ${data as string}`)
|
this.logger.error(`ModerationBot stderr: ${data as string}`)
|
||||||
})
|
})
|
||||||
moderationBotProcess.on('error', (error) => {
|
moderationBotProcess.on('error', (error) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user