Skip to content

Commit

Permalink
feat: CodeRabbitAI suggestion!
Browse files Browse the repository at this point in the history
  • Loading branch information
amindadgar committed Oct 9, 2024
1 parent fe6a3be commit 28b7506
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routers/amqp.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from datetime import datetime

from faststream.rabbit import RabbitBroker
from faststream.rabbit.fastapi import Logger, RabbitRouter # type: ignore
from faststream.rabbit import RabbitBroker
from faststream.rabbit.schemas.queue import RabbitQueue
from pydantic import BaseModel
from schema import AMQPPayload, ResponseModel
Expand Down Expand Up @@ -54,7 +54,7 @@ async def ask(payload: Payload, logger: Logger):
message=result, queue=payload.content.route.destination.queue
)
except Exception as e:
logger.error(f"Errors While processing job! {e}")
logger.exception(f"Errors While processing job! {e}")
else:
logger.error(
f"No such `{payload.event}` event available for {Queue.HIVEMIND} queue!"
Expand Down

0 comments on commit 28b7506

Please sign in to comment.