private function setDebugCfg($cfg)
    {
        if (isset($cfg['key'])) {
            $cfg = \array_merge($cfg, $this->debugKeyValues($cfg['key']));
        }
        if (isset($cfg['logEnvInfo']) && \is_bool($cfg['logEnvInfo'])) {
            $keys = \array_keys($this->cfg['logEnvInfo']);
            $cfg['logEnvInfo'] = \array_fill_keys($keys, $cfg['logEnvInfo']);
        }
        if (isset($cfg['logServerKeys'])) {
            // don't append, replace
            $this->cfg['logServerKeys'] = array();
        }
        $this->cfg = $this->debug->utilities->arrayMergeDeep($this->cfg, $cfg);
    }