From 946c87b128d9c8952c7e7d215aeb7dfd4fe3d477 Mon Sep 17 00:00:00 2001 From: Rowan Seymour Date: Fri, 20 Sep 2024 11:00:17 -0500 Subject: [PATCH] Add org_id to warning error about large non-persistent broadcasts --- core/tasks/msgs/send_broadcast.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/tasks/msgs/send_broadcast.go b/core/tasks/msgs/send_broadcast.go index add73145e..468a51b3c 100644 --- a/core/tasks/msgs/send_broadcast.go +++ b/core/tasks/msgs/send_broadcast.go @@ -90,8 +90,9 @@ func createBroadcastBatches(ctx context.Context, rt *runtime.Runtime, oa *models return nil } + // TODO remove once we decide whether to not add an actual limit if bcast.ID == models.NilBroadcastID && len(contactIDs) > 100 { - slog.Error("non-persistent broadcast to more than 100 contacts", "count", len(contactIDs)) + slog.Error("non-persistent broadcast to more than 100 contacts", "count", len(contactIDs), "org_id", bcast.OrgID) } // batches will be processed in the throttled queue unless we're a single contact