We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb84518 commit 32440e0Copy full SHA for 32440e0
src/frequenz/dispatch/_merge_strategies.py
@@ -15,6 +15,8 @@
15
from ._bg_service import MergeStrategy
16
from ._dispatch import Dispatch
17
18
+_logger = logging.getLogger(__name__)
19
+
20
21
def _hash_positive(args: Any) -> int:
22
"""Make a positive hash."""
@@ -40,7 +42,7 @@ def filter(
40
42
strategy's criteria are running.
41
43
"""
44
if dispatch.started:
- logging.debug("Keeping start event %s", dispatch.id)
45
+ _logger.debug("Keeping start event %s", dispatch.id)
46
return True
47
48
other_dispatches_running = any(
@@ -52,7 +54,7 @@ def filter(
52
54
)
53
55
56
- logging.debug(
57
+ _logger.debug(
58
"stop event %s because other_dispatches_running=%s",
59
dispatch.id,
60
other_dispatches_running,
0 commit comments