Skip to content

Commit 8f05e9b

Browse files
committed
pass lint
1 parent d3f7e88 commit 8f05e9b

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/logging/logger.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,12 @@ def __init__(self, addr=None, tool_name="unknown_tool"):
8888
logging.getLogger(__name__).info(f"ZMQ handler connected to: {addr}")
8989
except zmq.error.ZMQError as e:
9090
# If connection fails, disable the handler
91-
logging.getLogger(__name__).warning(f"Could not connect to ZMQ listener at {addr}: {e}")
92-
logging.getLogger(__name__).warning("Disabling ZMQ logging for this handler")
91+
logging.getLogger(__name__).warning(
92+
f"Could not connect to ZMQ listener at {addr}: {e}"
93+
)
94+
logging.getLogger(__name__).warning(
95+
"Disabling ZMQ logging for this handler"
96+
)
9397
self.sock = None
9498

9599
self.task_id = os.environ.get("TASK_ID", "0")
@@ -98,7 +102,7 @@ def __init__(self, addr=None, tool_name="unknown_tool"):
98102
def emit(self, record):
99103
if self.sock is None:
100104
return
101-
105+
102106
try:
103107
msg = f"{record.getMessage()}"
104108
self.sock.send_string(f"{self.task_id}||{self.tool_name}||{msg}")

0 commit comments

Comments
 (0)