From a712e40feaff5d3db85458e077560b45129e8f20 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Fri, 25 Aug 2023 15:00:12 +0000 Subject: [PATCH] Bug 33537: (QA follow-up) Improve process_message_queue warning message Signed-off-by: Pedro Amorim --- Koha/Notice/Util.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Koha/Notice/Util.pm b/Koha/Notice/Util.pm index 180918fead..04e41bc9ad 100644 --- a/Koha/Notice/Util.pm +++ b/Koha/Notice/Util.pm @@ -131,7 +131,12 @@ sub exceeds_limit { if ($incr) { $domain_limits->{$group}->{count}++; - warn "Sending messages: domain $group reached limit of " . $domain_limits->{$group}->{limit} + warn "Sending messages: The domain $group has reached the limit of " + . $domain_limits->{$group}->{limit} + . " messages per " + . $domain_limits->{$group}->{units} + . " " + . $domain_limits->{$group}->{unit_type} if $domain_limits->{$group}->{count} == $domain_limits->{$group}->{limit}; } return 0; -- 2.30.2