Commit b03e739f3d6eecd2388efc18e5998073d93e3ead
1 parent
171f3d89
Fix not being able to re-enable logging on config reload
Showing
1 changed file
with
2 additions
and
0 deletions
logger.cpp
| ... | ... | @@ -159,6 +159,8 @@ void Logger::setLogPath(const std::string &path) |
| 159 | 159 | |
| 160 | 160 | void Logger::setFlags(bool logDebug, bool logSubscriptions, bool quiet) |
| 161 | 161 | { |
| 162 | + curLogLevel = LOG_ERR | LOG_WARNING | LOG_NOTICE | LOG_INFO | LOG_SUBSCRIBE | LOG_UNSUBSCRIBE ; | |
| 163 | + | |
| 162 | 164 | if (logDebug) |
| 163 | 165 | curLogLevel |= LOG_DEBUG; |
| 164 | 166 | else | ... | ... |