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' }}",
Community Page
Last updated: