mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 07:38:19 +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
|
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));
|
local log = Info($ts=network_time(), $id=ID, $old_value=format_value(lookup_ID(ID)), $new_value=format_value(new_value));
|
||||||
if ( location != "" )
|
if ( location != "" )
|
||||||
log$location = location;
|
log$location = location;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue