Skip to content

Commit

Permalink
disable highlight if level < loglevel
Browse files Browse the repository at this point in the history
  • Loading branch information
diridari committed Nov 30, 2018
1 parent dadba17 commit 9f1ac3b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/logging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ void Log::log_(string src, string message, LogLevel l,string name, int line, uns
logWriter->flush();
}
// write to cli
highlight(l);

if (l <= level) {
highlight(l);
cout << log << "\n";
if (highlight) {
resetCLIToDefault();
Expand Down

0 comments on commit 9f1ac3b

Please sign in to comment.