Skip to content

Commit 32440e0

Browse files
committed
Use proper logging paths
Signed-off-by: Mathias L. Baumann <[email protected]>
1 parent eb84518 commit 32440e0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/frequenz/dispatch/_merge_strategies.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
from ._bg_service import MergeStrategy
1616
from ._dispatch import Dispatch
1717

18+
_logger = logging.getLogger(__name__)
19+
1820

1921
def _hash_positive(args: Any) -> int:
2022
"""Make a positive hash."""
@@ -40,7 +42,7 @@ def filter(
4042
strategy's criteria are running.
4143
"""
4244
if dispatch.started:
43-
logging.debug("Keeping start event %s", dispatch.id)
45+
_logger.debug("Keeping start event %s", dispatch.id)
4446
return True
4547

4648
other_dispatches_running = any(
@@ -52,7 +54,7 @@ def filter(
5254
)
5355
)
5456

55-
logging.debug(
57+
_logger.debug(
5658
"stop event %s because other_dispatches_running=%s",
5759
dispatch.id,
5860
other_dispatches_running,

0 commit comments

Comments
 (0)