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 {

View File

@@ -17,7 +17,7 @@ config = {
'description': 'Runs calendar sync automatically every 15 minutes',
'flows': ['advoware-calendar-sync'],
'triggers': [
cron("0 */15 1o * * *") # Every 15 minutes at second 0 (6-field: sec min hour day month weekday)
cron("0 */15 * * * *") # Every 15 minutes at second 0 (6-field: sec min hour day month weekday)
],
'enqueues': ['calendar_sync_all']
}