Skip to content

Commit

Permalink
Do not output anything to stdout when logging is happening when the d…
Browse files Browse the repository at this point in the history
…b is closed.
  • Loading branch information
Isaac Connor committed Sep 23, 2024
1 parent d513451 commit 4af6e6e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/zm_logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -533,8 +533,6 @@ void Logger::logPrint(bool hex, const char *filepath, int line, int level, const
now_sec, static_cast<int64>(now_frac.count()), mId.c_str(), staticConfig.SERVER_ID, tid, level, classString,
escapedString.c_str(), file, line);
dbQueue.push(std::move(sql_string));
} else {
puts("Db is closed");
}
} // end if level <= mDatabaseLevel

Expand Down

0 comments on commit 4af6e6e

Please sign in to comment.