From e3751f383c65233ebc21998e7fcdc5f4dc8d2597 Mon Sep 17 00:00:00 2001 From: Patryk Dobrowolski Date: Fri, 18 Oct 2024 14:28:27 +0200 Subject: [PATCH] test17 --- .../slack-message-sender/slack-message-sender.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cmd/cloud-run/slack-message-sender/slack-message-sender.py b/cmd/cloud-run/slack-message-sender/slack-message-sender.py index 469205876fed..48c8a2b6459f 100755 --- a/cmd/cloud-run/slack-message-sender/slack-message-sender.py +++ b/cmd/cloud-run/slack-message-sender/slack-message-sender.py @@ -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)