mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Provide a mechanism to suppress logging of internal config framework activity
This commit is contained in:
parent
a16bd28284
commit
19829765d4
1 changed files with 3 additions and 0 deletions
|
@ -147,6 +147,9 @@ function format_value(value: any) : string
|
|||
|
||||
function config_option_changed(ID: string, new_value: any, location: string): any &is_used
|
||||
{
|
||||
# Some option updates reflect Zeek-internal activity and shouldn't be logged.
|
||||
if ( location == "<skip-config-log>" )
|
||||
return new_value;
|
||||
local log = Info($ts=network_time(), $id=ID, $old_value=format_value(lookup_ID(ID)), $new_value=format_value(new_value));
|
||||
if ( location != "" )
|
||||
log$location = location;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue