UPDATE:snapshot中记录的format默认增加%U

This commit is contained in:
yangwei
2020-09-08 17:01:16 +08:00
parent 8dee487439
commit 9c410a1e7e

View File

@@ -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);
}