mirror of
https://github.com/pockethost/pockethost.git
synced 2026-03-04 08:15:17 +00:00
add discord alert to instance errors
This commit is contained in:
@@ -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: (
|
||||
|
||||
Reference in New Issue
Block a user