Skip to content

Commit 11486b4

Browse files
committed
Use correct form of logging
Signed-off-by: Mathias L. Baumann <[email protected]>
1 parent 4948f59 commit 11486b4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/frequenz/client/dispatch/test/_service.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@
4646
NONE_KEY = "none"
4747
"""Key that has no access to any resources in the FakeService."""
4848

49+
_logger = logging.getLogger(__name__)
50+
4951

5052
class FakeService:
5153
"""Dispatch mock service for testing."""
@@ -178,7 +180,7 @@ async def StreamMicrogridDispatches(
178180
receiver = self._stream_channel.new_receiver()
179181

180182
async for message in receiver:
181-
logging.debug("Received message: %s", message)
183+
_logger.debug("Received message: %s", message)
182184
if message.microgrid_id == MicrogridId(request.microgrid_id):
183185
response = StreamMicrogridDispatchesResponse(
184186
event=message.event.event.value,

0 commit comments

Comments
 (0)