Skip to content

Commit

Permalink
* Making the logger check a bit more stringent
Browse files Browse the repository at this point in the history
  • Loading branch information
jredmondson committed Oct 1, 2018
1 parent b21b02a commit 0d0d94e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/madara/logger/Logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ std::string madara::logger::Logger::search_and_insert_custom_tstamp(

void madara::logger::Logger::log(int level, const char* message, ...)
{
if (level <= get_thread_level() || level <= level_)
if ((madara::logger::Logger::get_thread_level() >= 0 &&
level <= get_thread_level()) ||
level <= level_)
{
va_list argptr;
va_start(argptr, message);
Expand Down

0 comments on commit 0d0d94e

Please sign in to comment.