Skip to content

Commit 4df6d66

Browse files
committed
1
1 parent 37b55eb commit 4df6d66

3 files changed

Lines changed: 2 additions & 4 deletions

File tree

src/meta/test/dump_file.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
* THE SOFTWARE.
2525
*/
2626

27-
#include <fcntl.h>
2827
#include <stdint.h>
2928
#include <stdio.h>
3029
#include <string.h>

src/utils/logging.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ static void log_on_sys_exit(::dsn::sys_exit_type)
142142
{
143143
g_stderr_logger->flush();
144144
g_file_logger->flush();
145-
log_cmds.clear();
146145
}
147146

148147
void dsn_log_init(const std::string &log_dir, const std::string &role_name)
@@ -151,7 +150,8 @@ void dsn_log_init(const std::string &log_dir, const std::string &role_name)
151150
"file",
152151
fmt::format("{}/{}.log", log_dir, role_name.empty() ? FLAGS_base_name : role_name),
153152
FLAGS_max_log_file_bytes,
154-
FLAGS_max_number_of_log_files_on_disk);
153+
FLAGS_max_number_of_log_files_on_disk,
154+
true /*rotate_on_open*/);
155155
// _symlink_path = utils::filesystem::path_combine(_log_dir, symlink_name);
156156
const auto file_start_level =
157157
to_spdlog_levels[enum_from_string(FLAGS_logging_start_level, LOG_LEVEL_INVALID)];

src/utils/test/endian_test.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
#include "gtest/gtest.h"
2323
#include "utils/endians.h"
24-
#include "utils/enum_helper.h"
2524

2625
using namespace dsn;
2726

0 commit comments

Comments
 (0)