Skip to content

Commit

Permalink
Fix log identification for TRACE
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasff committed Aug 8, 2023
1 parent 0c4547f commit 9db6459
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/slog.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ slog_internal(struct server *s, log_level level,
}

/* generate output line. */
char letter = (level == WEBDIS_TRACE ? 5 : c[level]);
char letter = (level == WEBDIS_TRACE ? c[5] : c[level]);
line_sz = snprintf(line, sizeof(line),
"[%d] %s %c %s\n", (int)s->log.self, time_buf, letter, msg);

Expand Down

0 comments on commit 9db6459

Please sign in to comment.