summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryangwei <[email protected]>2020-09-08 17:01:16 +0800
committeryangwei <[email protected]>2020-09-08 17:01:16 +0800
commit9c410a1e7eb35f51cbeaba6d220dfd1faf178093 (patch)
tree2a2f907c68a9058f29978f64431226e246f4adc0
parent8dee487439294bba0220649e93e139b4dfc6902c (diff)
UPDATE:snapshot中记录的format默认增加%U
-rw-r--r--src/MESA_handle_logger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/MESA_handle_logger.c b/src/MESA_handle_logger.c
index eb37b44..35348c1 100644
--- a/src/MESA_handle_logger.c
+++ b/src/MESA_handle_logger.c
@@ -133,7 +133,7 @@ static void snapshot_handle_info(const char *handle_name, int level)
return;
}
int len = snprintf(zlog_rule_conf_content, sizeof(zlog_rule_conf_content),
- "[global]\ndefault format = \"%%d(%%c), %%V, %%m%%n\" \n[levels]\nDEBUG=10\nINFO=20\nFATAL=30\n[rules]");
+ "[global]\ndefault format = \"%%d(%%c), %%V, %U, %%m%%n\" \n[levels]\nDEBUG=10\nINFO=20\nFATAL=30\n[rules]");
write(g_zlog_conf_fp, zlog_rule_conf_content, strlen(zlog_rule_conf_content));
fsync(g_zlog_conf_fp);
}