Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
Correct file truncate argument
Browse files Browse the repository at this point in the history
  • Loading branch information
xlz-jbleclere committed Sep 4, 2020
1 parent 0ee77da commit 667439b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/drm_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ class DRM_LOCAL DrmManager::Impl {
}
if ( type == eLogFileType::BASIC )
log_sink = std::make_shared<spdlog::sinks::basic_file_sink_mt>(
file_path, file_append);
file_path, !file_append);
else // type == eLogFileType::ROTATING
log_sink = std::make_shared<spdlog::sinks::rotating_file_sink_mt>(
file_path, rotating_size*1024, rotating_num);
Expand Down

0 comments on commit 667439b

Please sign in to comment.