We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6294d17 commit c8a2b9aCopy full SHA for c8a2b9a
backend/message_listener.py
@@ -94,7 +94,7 @@ async def callback(message: AbstractIncomingMessage):
94
msg = json.loads(message.body.decode("utf-8"))
95
96
if "event_type" in msg and msg["event_type"] == "file_indexed":
97
- print(f"This is an event type file indexed!")
+ logger.info(f"This is an event type file indexed!")
98
99
job_id = msg["job_id"]
100
message_str = msg["status"]
@@ -209,6 +209,8 @@ async def listen_for_messages():
209
durable=True,
210
)
211
await queue.bind(exchange)
212
+ await queue.bind(exchange, routing_key="file_indexed_events") # Add this line
213
+
214
215
logger.info(f" [*] Listening to {exchange}")
216
await queue.consume(
0 commit comments