* logging: Fix creating empty file even when disabled
* Minor formatting fix
Co-authored-by: staviq <redacted>
---------
Co-authored-by: staviq <redacted>
}
}
- 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;
}