Not able to view SC debug logs if debug flag is evaluated from expression in config.js

@patrick can you move this block from config.js

if (config.debug) {
    require('debug').enable(typeof config.debug == 'string' ? config.debug : 'server-connect:*');
}

after the expressions are parsed

Parser.parseValue(config, new Scope({
    $_ENV: process.env
}));

If not I can’t view the debug logs if the flag is evaluated from an expression.

"debug": "{{ $_ENV.SC_DEBUG == 'true' }}",

This was already done in 5.2.2: Set Debug & Scheduler Options Via $_ENV
Which version are you on?

Since I updated…

Thanks @sid!

1 Like