feat(sync-utils): add logging delegation method to BaseSyncUtils
This commit is contained in:
@@ -42,6 +42,11 @@ class BaseSyncUtils:
|
||||
"Distributed Locking deaktiviert - Race Conditions möglich!"
|
||||
)
|
||||
|
||||
def _log(self, message: str, level: str = 'info') -> None:
|
||||
"""Delegate logging to the logger with optional level"""
|
||||
log_func = getattr(self.logger, level, self.logger.info)
|
||||
log_func(message)
|
||||
|
||||
def _get_lock_key(self, entity_id: str) -> str:
|
||||
"""
|
||||
Erzeugt Redis Lock-Key für eine Entity
|
||||
|
||||
Reference in New Issue
Block a user