Skip to content

Commit

Permalink
fix: don't show error when log file isn't specified and can't be found
Browse files Browse the repository at this point in the history
  • Loading branch information
Disservin committed Jan 13, 2025
1 parent 9043663 commit 2068a82
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/core/logger/logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ std::mutex Logger::log_mutex_;
Logger::log_file_type Logger::log_;

void Logger::openFile(const std::string &file) {
if (file.empty()) {
return;
}

#ifdef USE_ZLIB
if (compress_) {
auto t = std::chrono::system_clock::now();
Expand Down

0 comments on commit 2068a82

Please sign in to comment.