refactor(logging): standardize logging approach across services and steps
This commit is contained in:
@@ -14,7 +14,7 @@ import pytz
|
||||
from services.exceptions import RedisConnectionError, LockAcquisitionError
|
||||
from services.redis_client import get_redis_client
|
||||
from services.config import SYNC_CONFIG, get_lock_key
|
||||
from services.logging_utils import get_logger
|
||||
from services.logging_utils import get_service_logger
|
||||
|
||||
import redis
|
||||
|
||||
@@ -31,7 +31,7 @@ class BaseSyncUtils:
|
||||
"""
|
||||
self.espocrm = espocrm_api
|
||||
self.context = context
|
||||
self.logger = get_logger('sync_utils', context)
|
||||
self.logger = get_service_logger('sync_utils', context)
|
||||
|
||||
# Use provided Redis client or get from factory
|
||||
self.redis = redis_client or get_redis_client(strict=False)
|
||||
|
||||
Reference in New Issue
Block a user