Use existing config variable, not a new one

Without this, log remained closed. Always.
Merge pull request #1253 from otoolep/fix_config_ref

Use existing config variable, not a new one