Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix log header not corresponding to level #1246

Merged
merged 2 commits into from
Nov 17, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/utils/simple_logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,13 @@ DSN_DEFINE_validator(stderr_start_level, [](const char *level) -> bool {

static void print_header(FILE *fp, dsn_log_level_t log_level)
{
static char s_level_char[] = "IDWEF";
acelyc111 marked this conversation as resolved.
Show resolved Hide resolved
// The leading character of each log lines, corresponding to the log level
// D: Debug
// I: Info
// W: Warning
// E: Error
// F: Fatal
static char s_level_char[] = "DIWEF";

uint64_t ts = dsn_now_ns();
std::string time_str;
Expand Down