Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostwang committed Nov 20, 2019
1 parent 1863b42 commit 91c6e8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/logging.cc
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ static const char* GetAnsiColorCode(GLogColor color) {

// Safely get max_log_size, overriding to 1 if it somehow gets defined as 0
static int32 MaxLogSize() {
return (FLAGS_max_log_size > 0 ? FLAGS_max_log_size : 1);
return (FLAGS_max_log_size > 0 && FLAGS_max_log_size < 4096 ? FLAGS_max_log_size : 1);
}

// An arbitrary limit on the length of a single log message. This
Expand Down

0 comments on commit 91c6e8b

Please sign in to comment.