Skip to content

Commit

Permalink
feat: Add init log message for debug mode status
Browse files Browse the repository at this point in the history
  • Loading branch information
FoxxMD committed Dec 20, 2024
1 parent 1bcfed0 commit 38e5e4c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/backend/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { getRoot, parseVersion } from "./ioc.js";
import { initServer } from "./server/index.js";
import { createHeartbeatClientsTask } from "./tasks/heartbeatClients.js";
import { createHeartbeatSourcesTask } from "./tasks/heartbeatSources.js";
import { parseBool, readJson, retry, sleep } from "./utils.js";
import { isDebugMode, parseBool, readJson, retry, sleep } from "./utils.js";
import { createVegaGenerator } from './utils/SchemaUtils.js';
import ScrobbleClients from './scrobblers/ScrobbleClients.js';
import ScrobbleSources from './sources/ScrobbleSources.js';
Expand Down Expand Up @@ -81,6 +81,8 @@ const configDir = process.env.CONFIG_DIR || path.resolve(projectDir, `./config`)
process.env.DEBUG_MODE = b.toString();
}

initLogger.info(`Debug Mode: ${isDebugMode() ? 'YES' : 'NO'}`);

await parseVersion();

const [aLogger, appLoggerStream] = await appLogger(logging)
Expand Down

0 comments on commit 38e5e4c

Please sign in to comment.