Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
acelyc111 committed Aug 2, 2024
1 parent 37b55eb commit 4df6d66
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/meta/test/dump_file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
* THE SOFTWARE.
*/

#include <fcntl.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
Expand Down
4 changes: 2 additions & 2 deletions src/utils/logging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ static void log_on_sys_exit(::dsn::sys_exit_type)
{
g_stderr_logger->flush();
g_file_logger->flush();
log_cmds.clear();
}

void dsn_log_init(const std::string &log_dir, const std::string &role_name)
Expand All @@ -151,7 +150,8 @@ void dsn_log_init(const std::string &log_dir, const std::string &role_name)
"file",
fmt::format("{}/{}.log", log_dir, role_name.empty() ? FLAGS_base_name : role_name),
FLAGS_max_log_file_bytes,
FLAGS_max_number_of_log_files_on_disk);
FLAGS_max_number_of_log_files_on_disk,
true /*rotate_on_open*/);
// _symlink_path = utils::filesystem::path_combine(_log_dir, symlink_name);
const auto file_start_level =
to_spdlog_levels[enum_from_string(FLAGS_logging_start_level, LOG_LEVEL_INVALID)];
Expand Down
1 change: 0 additions & 1 deletion src/utils/test/endian_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

#include "gtest/gtest.h"
#include "utils/endians.h"
#include "utils/enum_helper.h"

using namespace dsn;

Expand Down

0 comments on commit 4df6d66

Please sign in to comment.