Skip to content

Commit

Permalink
fix(startup): Make sure log level can be set via command line
Browse files Browse the repository at this point in the history
Fixes #932
  • Loading branch information
Göran Sander committed Oct 23, 2024
1 parent 51b64b3 commit 45733c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/butler-sos.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ async function sleep(ms) {
}

async function mainScript() {
// Set env variable to indicate that it is ok to change config settings
process.env.ALLOW_CONFIG_MUTATIONS = 'true';

// Load globals dynamically/async to ensure singleton pattern works
const settingsObj = (await import('./globals.js')).default;
const globals = await settingsObj.init();
Expand Down

0 comments on commit 45733c9

Please sign in to comment.