Skip to content

Commit 138afa2

Browse files
committed
Add error status code to extra field in logs
1 parent da2aa27 commit 138afa2

File tree

1 file changed

+1
-0
lines changed
  • packages/syncKnowledgeBaseFunction

1 file changed

+1
-0
lines changed

packages/syncKnowledgeBaseFunction/app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def handler(event, context):
3232
logger.error(
3333
"Missing required environment variables",
3434
extra={
35+
"statusCode": 500,
3536
"knowledge_base_id": bool(knowledge_base_id),
3637
"data_source_id": bool(data_source_id),
3738
},

0 commit comments

Comments
 (0)