logger: Dedup code, fix client Debug Log loglevel
authorShane Synan <digitalcircuit36939@gmail.com>
Thu, 14 Feb 2019 00:31:50 +0000 (19:31 -0500)
committerManuel Nickschas <sputnick@quassel-irc.org>
Thu, 14 Feb 2019 19:24:48 +0000 (20:24 +0100)
commit3c910a417a72dfa529ad514d9a616139b7d57bab
tree85fdeab2eaa48b066d80f1e152c87f8018a0ac84
parent5f771f4a6942248ebe0a5a690f19e509328265cf
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