Skip to content

Commit

Permalink
Avoid disable logs create dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackarain committed Sep 26, 2024
1 parent e954d85 commit 085a545
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions proxy/include/proxy/logging.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ class auto_logger_file__
return;

std::error_code ignore_ec;
if (!fs::exists(m_log_path, ignore_ec))
if (!fs::exists(m_log_path, ignore_ec) && global_write_logging___)
fs::create_directories(
m_log_path.parent_path(), ignore_ec);
}
Expand All @@ -765,7 +765,7 @@ class auto_logger_file__
return;

std::error_code ignore_ec;
if (!fs::exists(m_log_path, ignore_ec))
if (!fs::exists(m_log_path, ignore_ec) && global_write_logging___)
fs::create_directories(
m_log_path.parent_path(), ignore_ec);
}
Expand Down

0 comments on commit 085a545

Please sign in to comment.