Skip to content

Commit 7774f5e

Browse files
committed
Move log_once function
1 parent a87ae86 commit 7774f5e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/redis_release/bht/behaviours.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
from redis_release.bht.state import reset_model_to_defaults
2727

2828
from ..github_client_async import GitHubClientAsync
29+
from ..logging_config import log_once
2930
from ..models import RedisVersion, ReleaseType, WorkflowConclusion, WorkflowStatus
3031
from .logging_wrapper import PyTreesLoggerWrapper
3132
from .state import Package, PackageMeta, ReleaseMeta, Workflow
@@ -53,10 +54,7 @@ def log_exception_and_return_failure(self, e: Exception) -> Status:
5354
return Status.FAILURE
5455

5556
def log_once(self, key: str, container: Dict[str, bool]) -> bool:
56-
if key not in container:
57-
container[key] = True
58-
return True
59-
return False
57+
return log_once(key, container)
6058

6159

6260
class ReleaseAction(LoggingAction):

0 commit comments

Comments
 (0)