]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Reduce startup/shutdown verbose logging
authorGeorge Joseph <gjoseph@sangoma.com>
Wed, 31 Jan 2024 17:46:28 +0000 (10:46 -0700)
committerGeorge Joseph <gjoseph@sangoma.com>
Mon, 12 Feb 2024 18:46:29 +0000 (18:46 +0000)
commita5ae546b88358f30845647d751d1bdf668652eff
tree0228c12756b564d1cef4ff8b194da7b53c31312c
parentd0d09ef0103a76d8f66e5013a9e41c05c33c599d
Reduce startup/shutdown verbose logging

When started with a verbose level of 3, asterisk can emit over 1500
verbose message that serve no real purpose other than to fill up
logs. When asterisk shuts down, it emits another 1100 that are of
even less use. Since the testsuite runs asterisk with a verbose
level of 3, and asterisk starts and stops for every one of the 700+
tests, the number of log messages is staggering.  Besides taking up
resources, it also makes it hard to debug failing tests.

This commit changes the log level for those verbose messages to 5
instead of 3 which reduces the number of log messages to only a
handful. Of course, NOTICE, WARNING and ERROR message are
unaffected.

There's also one other minor change...
ast_context_remove_extension_callerid2() logs a DEBUG message
instead of an ERROR if the extension you're deleting doesn't exist.
The pjsip_config_wizard calls that function to clean up the config
and has been triggering that annoying error message for years.

Resolves: #582
29 files changed:
apps/app_amd.c
codecs/codec_speex.c
main/bridge.c
main/bucket.c
main/cdr.c
main/channel.c
main/codec.c
main/config.c
main/dns_core.c
main/file.c
main/format.c
main/format_cache.c
main/image.c
main/indications.c
main/loader.c
main/manager.c
main/message.c
main/pbx.c
main/pbx_app.c
main/pbx_functions.c
main/refer.c
main/rtp_engine.c
main/sorcery.c
main/translate.c
res/res_agi.c
res/res_audiosocket.c
res/res_clialiases.c
res/res_http_websocket.c
res/res_speech.c