Skip to content

Commit

Permalink
Update logger.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
pettershao-ragilenetworks authored Oct 18, 2022
1 parent 1130c0b commit d697a02
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions common/logger.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "logger.h"
#include <assert.h>

#include <algorithm>
#include <stdarg.h>
#include <stdio.h>
Expand Down Expand Up @@ -233,8 +233,10 @@ void Logger::settingThread()
}

KeyOpFieldsValuesTuple koValues;
ConsumerStateTable *consumerStateTable = dynamic_cast<ConsumerStateTable *>(selectable);
assert(consumerStateTable != NULL);
ConsumerStateTable *consumerStateTable = NULL;
consumerStateTable = dynamic_cast<ConsumerStateTable *>(selectable);
if (consumerStateTable == NULL)
continue;
consumerStateTable->pop(koValues);
std::string key = kfvKey(koValues), op = kfvOp(koValues);

Expand Down

0 comments on commit d697a02

Please sign in to comment.