feat(espocrm): add logging method to EspoCRMAPI for improved message handling

fix(calendar_sync): correct cron expression for calendar sync job
This commit is contained in:
bsiggel
2026-03-08 17:58:10 +00:00
parent d7b2b5543f
commit 6f7d62293e
2 changed files with 6 additions and 1 deletions

View File

@@ -67,6 +67,11 @@ class EspoCRMAPI:
else:
self.logger.warning("⚠️ Redis unavailable - caching disabled")
def _log(self, message: str, level: str = 'info') -> None:
"""Delegate to IntegrationLogger with optional level"""
log_func = getattr(self.logger, level, self.logger.info)
log_func(message)
def _get_headers(self) -> Dict[str, str]:
"""Generate request headers with API key"""
return {