]> git.ipfire.org Git - thirdparty/asterisk.git/commit
verbosity: Fix performance of console verbose messages.
authorRichard Mudgett <rmudgett@digium.com>
Tue, 14 Jan 2014 17:26:35 +0000 (17:26 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 14 Jan 2014 17:26:35 +0000 (17:26 +0000)
commitf90a045a366a53a5c70876e1209352b758d5109f
tree7da043b1290e90364397ebf48c47f83b7604da29
parentb12f6bc35827c92262093fed4fe7282aa8e16d24
verbosity: Fix performance of console verbose messages.

The per console verbose level feature as previously implemented caused a
large performance penalty.  The fix required some minor incompatibilities
if the new rasterisk is used to connect to an earlier version.  If the new
rasterisk connects to an older Asterisk version then the root console
verbose level is always affected by the "core set verbose" command of the
remote console even though it may appear to only affect the current
console.  If an older version of rasterisk connects to the new version
then the "core set verbose" command will have no effect.

* Fixed the verbose performance by not generating a verbose message if
nothing is going to use it and then filtered any generated verbose
messages before actually sending them to the remote consoles.

* Split the "core set debug" and "core set verbose" CLI commands to remove
the per module verbose support that cannot work with the per console
verbose level.

* Added a silent option to the "core set verbose" command.

* Fixed "core set debug off" tab completion.

* Made "core show settings" list the current console verbosity in addition
to the root console verbosity.

* Changed the default verbose level of the 'verbose' setting in the
logger.conf [logfiles] section.  The default is now to once again follow
the current root console level.  As a result, using the AMI Command action
with "core set verbose" could again set the root console verbose level and
affect the verbose level logged.

(closes issue AST-1252)
Reported by: Guenther Kelleter

Review: https://reviewboard.asterisk.org/r/3114/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@405431 65c4cc65-6c06-0410-ace0-fbb531ad65f3
UPGRADE.txt
apps/app_dumpchan.c
apps/app_verbose.c
configs/logger.conf.sample
funcs/func_timeout.c
include/asterisk/logger.h
main/asterisk.c
main/cli.c
main/logger.c
main/manager.c
main/pbx.c