packages/okam-build/lib/processor/json/quick-app-json.js
function normalizeDebugConfig(info) {
    if (info.hasOwnProperty('debug')) {
        let debug = info.debug;
        delete info.debug;

        let value = debug ? 'debug' : 'off';
        let config = info.config;
        if (!config) {
            info.config = {
                logLevel: value
            };
        }
        else if (!config.logLevel) {
            config.logLevel = value;
        }
    }
}
function normalizeDebugConfig(info) {
    if (info.hasOwnProperty('debug')) {
        let debug = info.debug;
        delete info.debug;

        let value = debug ? 'debug' : 'off';
        let config = info.config;
        if (!config) {
            info.config = {
                logLevel: value
            };
        }
        else if (!config.logLevel) {
            config.logLevel = value;
        }
    }
}
function normalizeDebugConfig ( info ) { if ( info . hasOwnProperty ( 'debug' ) ) { let debug = info . debug ; delete info . debug ; let value = debug ? 'debug' : 'off' ; let config = info . config ; if ( ! config ) { info . config = { logLevel : value } ; } else if ( ! config . logLevel ) { config . logLevel = value ; } } }
Normalize debug config
input:
{
debug: true
}

after normalize:
{
config: {
logLevel: 'debug'
}
}

@param {Object} info the app config info
Normalize debug config input : { debug : true }