Fix bug with $logFH not created unless in debug mode.