summaryrefslogtreecommitdiff
path: root/common/log.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/log.h')
-rw-r--r--common/log.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/common/log.h b/common/log.h
index bf9fafd6..0b9b0105 100644
--- a/common/log.h
+++ b/common/log.h
@@ -341,14 +341,14 @@ inline FILE *log_handler1_impl(bool change = false, LogTriState disable = LogTri
}
}
- if (_initialized)
+ if (_disabled)
{
- if (_disabled)
- {
- // Log is disabled
- return nullptr;
- }
+ // Log is disabled
+ return nullptr;
+ }
+ if (_initialized)
+ {
// with fallback in case something went wrong
return logfile ? logfile : stderr;
}