summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2023-04-28 11:10:56 -0400
committerChristian Hopps <chopps@labn.net>2023-04-29 02:36:06 -0400
commit6b7481aa8dcf539e133b0a8f7e2a4a612939ede1 (patch)
treeb30bd9fb17a4f466dc2509d171b7ff38399178fc /lib
parent8bc79f38555f142e5cbfcafc8a5af2549fc485ab (diff)
lib: add build option to set startup log timestemp precision
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/log_vty.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/log_vty.c b/lib/log_vty.c
index fc28ffc6fa..26e608d16b 100644
--- a/lib/log_vty.c
+++ b/lib/log_vty.c
@@ -34,18 +34,23 @@ static int log_cmdline_syslog_lvl = ZLOG_DISABLED;
static struct zlog_cfg_file zt_file_cmdline = {
.prio_min = ZLOG_DISABLED,
+ .ts_subsec = LOG_TIMESTAMP_PRECISION,
};
static struct zlog_cfg_file zt_file = {
.prio_min = ZLOG_DISABLED,
+ .ts_subsec = LOG_TIMESTAMP_PRECISION,
};
static struct zlog_cfg_filterfile zt_filterfile = {
- .parent = {
- .prio_min = ZLOG_DISABLED,
- },
+ .parent =
+ {
+ .prio_min = ZLOG_DISABLED,
+ .ts_subsec = LOG_TIMESTAMP_PRECISION,
+ },
};
static struct zlog_cfg_file zt_stdout_file = {
.prio_min = ZLOG_DISABLED,
+ .ts_subsec = LOG_TIMESTAMP_PRECISION,
};
static struct zlog_cfg_5424 zt_stdout_journald = {
.prio_min = ZLOG_DISABLED,