Skip to content

Commit 942e080

Browse files
committed
Update query_reformulator logger error
1 parent 98115f3 commit 942e080

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/slackBotFunction/query_reformulator.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,8 @@ def reformulate_query(user_query: str) -> str:
4040
return reformulated_query
4141

4242
except Exception as e:
43-
logger.error(f"Error reformulating query: {e}")
43+
logger.error(
44+
f"Error reformulating query: {e}",
45+
extra={"original_query": user_query, "prompt_arn": os.environ.get("QUERY_REFORMULATION_PROMPT_ARN")},
46+
)
4447
return user_query # Fallback to original query

0 commit comments

Comments
 (0)