mirror of
https://github.com/pockethost/pockethost.git
synced 2025-03-30 15:08:30 +00:00
add discord alert to instance errors
This commit is contained in:
parent
446ad519a9
commit
a9d7aa2ebb
@ -5,6 +5,7 @@ import {
|
||||
LoggerService,
|
||||
asyncExitHook,
|
||||
createCleanupManager,
|
||||
discordAlert,
|
||||
mergeConfig,
|
||||
mkInstanceDataPath,
|
||||
stringify,
|
||||
@ -103,12 +104,13 @@ export function InstanceLogger(
|
||||
const api = {
|
||||
info: (msg: string) => {
|
||||
resetTtl()
|
||||
dbg(`info: `, msg)
|
||||
info(`info: `, msg)
|
||||
logger.info(msg)
|
||||
},
|
||||
error: (msg: string) => {
|
||||
resetTtl()
|
||||
dbg(`error: `, msg)
|
||||
error(`error: `, msg)
|
||||
discordAlert(`error: ${msg}`)
|
||||
logger.error(msg)
|
||||
},
|
||||
tail: (
|
||||
|
Loading…
x
Reference in New Issue
Block a user