Normalize debug config
input:
{
debug: true
}

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

@param {Object} info the app config info
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;
        }
    }
}