diff options
| author | Christian Hopps <chopps@labn.net> | 2023-04-28 11:10:56 -0400 | 
|---|---|---|
| committer | Christian Hopps <chopps@labn.net> | 2023-04-29 02:36:06 -0400 | 
| commit | 6b7481aa8dcf539e133b0a8f7e2a4a612939ede1 (patch) | |
| tree | b30bd9fb17a4f466dc2509d171b7ff38399178fc /lib | |
| parent | 8bc79f38555f142e5cbfcafc8a5af2549fc485ab (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.c | 11 | 
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,  | 
