refactor(logger): refactor to allow for discord to only be sent when wanted on fatals
This commit is contained in:
@@ -15,7 +15,6 @@ const PORT = Number(env.VITE_PORT) || 4200;
|
||||
const main = async () => {
|
||||
//create the logger
|
||||
const log = createLogger({ module: "system", subModule: "main start" });
|
||||
|
||||
// base path
|
||||
let basePath: string = "";
|
||||
|
||||
@@ -35,6 +34,7 @@ const main = async () => {
|
||||
|
||||
if (set.length === 0) {
|
||||
return log.fatal(
|
||||
{ notify: true },
|
||||
"Seems like the DB is not setup yet the app will close now"
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user