Use existing config variable, not a new one

Without this, log remained closed. Always.