]> git.ipfire.org Git - thirdparty/asterisk.git/commit
taskprocessor.c: Change when high water warning logged. 21/4721/1
authorRichard Mudgett <rmudgett@digium.com>
Sat, 14 Jan 2017 03:23:49 +0000 (21:23 -0600)
committerRichard Mudgett <rmudgett@digium.com>
Sat, 14 Jan 2017 03:36:05 +0000 (21:36 -0600)
commit75c8536d74294d525917a3ce3575b7790e1d5f80
tree5bedc69970a7dcd8d3d737149cb9c7dc29898244
parent1384f8453b4f672bf6f22b4e0f208e68d5c3f0e4
taskprocessor.c: Change when high water warning logged.

The task processor queue reached X scheduled tasks message was originally
intended to get logged only once per task processor to prevent spamming
the log.  This is no longer necessary since high and low water thresholds
can better control when the message is logged.

It is beneficial to generate the warning each time a task processor
reaches the high water level because PJSIP stops processing new requests
while any high water alert is active.  Without this change you would have
to enable at least debug level 3 logging to know about a repeated alert
trigger.

* Made generate the warning message whenever a task is pushed into the
task processor that triggers the high water alert.

* Appended 'again' to the warning for a repeated high water alert trigger.

Change-Id: Iabf75a004f7edaf1e5e8c323099418e667cac999
main/taskprocessor.c