Skip to content

Commit

Permalink
Abort on FATAL log messages, not DEBUG.
Browse files Browse the repository at this point in the history
  • Loading branch information
stixpjr committed Nov 19, 2018
1 parent 14c438e commit 704afa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion log.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class Log {
if (skip_) return;
os_ << std::endl;
(lvl_ < WARN ? std::cerr : std::cout) << os_.str();
if (lvl_ == 0) {
if (lvl_ == FATAL) {
abort();
}
}
Expand Down

0 comments on commit 704afa4

Please sign in to comment.