Skip to content

Commit

Permalink
test17
Browse files Browse the repository at this point in the history
  • Loading branch information
akiioto committed Oct 18, 2024
1 parent db1871d commit e3751f3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cmd/cloud-run/slack-message-sender/slack-message-sender.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,15 @@ def issue_labeled() -> Response:
**log_fields,
))

# Limit the output to the first 10 items
sample_mapping = dict(list(slack_user_mapping.items())[:10])

print(LogEntry(
severity="INFO",
message=f'Print me some data from slack_user_mapping here: {sample_mapping}',
**log_fields,
))

return prepare_success_response()

return prepare_error_response("Cannot parse pubsub data", log_fields)
Expand Down

0 comments on commit e3751f3

Please sign in to comment.