Files
saksham 1a4c80958f Initial commit: CI Agent competitive-intelligence monitoring app
FastAPI + Celery + Next.js + Postgres/Redis app with company monitoring,
source collection, LLM-based change analysis, enrichment, and account
security (Turnstile, escalating lockout, email verification).
2026-08-05 10:48:20 -04:00

24 lines
718 B
Python

"""Console provider: logs the notification instead of sending it anywhere.
Used in local dev fallback and wherever a destination type isn't yet wired
to a real transport."""
from __future__ import annotations
from app.core.logging import get_logger
from app.notifications.base import DeliveryResult, NotificationMessage
logger = get_logger(__name__)
class ConsoleProvider:
provider_name = "console"
async def send(self, message: NotificationMessage) -> DeliveryResult:
logger.info(
"console_notification",
destination=message.destination_value,
subject=message.subject,
body=message.body_text,
)
return DeliveryResult(success=True)