Skip to content

Commit 3ba5604

Browse files
Rebase from development
1 parent fc76b3e commit 3ba5604

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

autosklearn/util/logging_.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff 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

test/test_evaluation/test_test_evaluator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323

2424
this_directory = os.path.dirname(__file__)
2525
sys.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

0 commit comments

Comments
 (0)