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).
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
"""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)
|
||||
Reference in New Issue
Block a user