File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -194,13 +194,8 @@ def _get_named_client_logger(
194194 local_logger .propagate = False
195195 local_logger .setLevel (logging .DEBUG )
196196
197- # We also need to make sure that we only have a single socket handler.
198- # The logger is a singleton, but the logger.handlers is a list. So we need to
199- # check if it already has a socket handler on it
200197 socketHandler = logging .handlers .SocketHandler (host , port )
201- registered_ports = [hdr .port for hdr in local_logger .handlers if 'SocketHandler' in str (hdr )]
202- if port not in registered_ports :
203- local_logger .addHandler (socketHandler )
198+ local_logger .addHandler (socketHandler )
204199
205200 return local_logger
206201
Original file line number Diff line number Diff line change 2323
2424this_directory = os .path .dirname (__file__ )
2525sys .path .append (this_directory )
26- from evaluation_util import (
26+ from evaluation_util import ( # noqa (E402: module level import not at top of file)
2727 get_evaluation_backend ,
2828 get_dataset_getters ,
2929 BaseEvaluatorTest ,
3030 get_multiclass_classification_datamanager ,
31- SCORER_LIST ,
31+ SCORER_LIST
3232) # noqa (E402: module level import not at top of file)
3333
3434
You can’t perform that action at this time.
0 commit comments