From b573ffa8973d375471fb10be3537d19fc1099f22 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 1 Apr 2020 10:33:42 -0400 Subject: [PATCH] Reduce log noise Stop logging frequently occuring events that are generally ignored. --- confluent_server/confluent/discovery/core.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/confluent_server/confluent/discovery/core.py b/confluent_server/confluent/discovery/core.py index 5171fcac..c3fb2b47 100644 --- a/confluent_server/confluent/discovery/core.py +++ b/confluent_server/confluent/discovery/core.py @@ -704,11 +704,11 @@ def detected(info): if nodename and handler: eval_node(cfg, handler, info, nodename) elif handler: - log.log( - {'info': 'Detected unknown {0} with hwaddr {1} at ' - 'address {2}'.format( - handler.devname, info['hwaddr'], handler.ipaddr - )}) + #log.log( + # {'info': 'Detected unknown {0} with hwaddr {1} at ' + # 'address {2}'.format( + # handler.devname, info['hwaddr'], handler.ipaddr + # )}) info['discostatus'] = 'unidentified' unknown_info[info['hwaddr']] = info @@ -1142,8 +1142,8 @@ def do_pxe_discovery(cfg, handler, info, manual, nodename, policies): return True if uuid_is_valid(info['uuid']): known_pxe_uuids[info['uuid']] = nodename - log.log({'info': 'Detected {0} ({1} with mac {2})'.format( - nodename, handler.devname, info['hwaddr'])}) + #log.log({'info': 'Detected {0} ({1} with mac {2})'.format( + # nodename, handler.devname, info['hwaddr'])}) return True