logger: Dedup code, fix client Debug Log loglevel
authorShane Synan <digitalcircuit36939@gmail.com>
Thu, 14 Feb 2019 13:58:46 +0000 (14:58 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Thu, 14 Feb 2019 21:16:15 +0000 (22:16 +0100)
commit1aa0c911c54698f5757f403ff0b6a1021386d348
tree09f6b2fac00281d2d563e9381ad64e86db480421
parentc18e611a6b8c07049cc82b2dcdb5b138d9a6dd43
logger: Dedup code, fix client Debug Log loglevel

Deduplicate code by moving LogEntry formatting into a separate
function, LogEntry::toString(), which applies timestamps and the log
level string.

Fix client Debug Log dialog to print log level using this new function.

Modify msgWithTime() to use this new function, too.
src/common/logger.cpp
src/common/logger.h
src/qtui/debuglogdlg.cpp