Skip to content

Commit

Permalink
Initialize throttled_times properly
Browse files Browse the repository at this point in the history
  • Loading branch information
ovalenti committed Jul 5, 2024
1 parent 8ccd057 commit 2b8fe96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion collector/lib/Logging.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const size_t LevelPaddingWidth = 7;
class LogMessage {
public:
LogMessage(const char* file, int line, LogLevel level, unsigned long* throttled_times = 0)
: file_(file), line_(line), level_(level), throttled_times_(throttled_times) {
: file_(file), line_(line), level_(level), throttled_times_(0) {
// if in debug mode, output file names associated with log messages
include_file_ = CheckLogLevel(LogLevel::DEBUG);
if (throttled_times) {
Expand Down

0 comments on commit 2b8fe96

Please sign in to comment.