]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Output of queue log not started until logger reloaded.
authorRichard Mudgett <rmudgett@digium.com>
Wed, 10 Aug 2011 20:29:59 +0000 (20:29 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Wed, 10 Aug 2011 20:29:59 +0000 (20:29 +0000)
commite6b7737ef65778f2721e805f1c0c1d43407a57a6
treeb2f38f709ea3ec22e395a0af0f9bd4ab2bc38390
parent43a5273659de0fc43d03ad02bd073a1c6b9c4150
Output of queue log not started until logger reloaded.

ASTERISK-15863 caused a regression with queue logging.  The output of the
queue log is not started until the logger configuration is reloaded.

* Queue log initialization is completely delayed until the first message
is posted to the queue log system.  Including the initial opening of the
queue log file.

* Fixed rotate_file() ROTATE strategy to give the file just rotated out to
the configured exec function after rotate.  Just like the other strategies.

* Fixed logger reload to always post the queue reload entry instead of
just if there is a queue log file.

* Refactored some code to eliminate some redundancy and to reduce stack
utilization.

(closes issue ASTERISK-17036)
JIRA SWP-2952
Reported by: Juan Carlos Valero
Patches:
      jira_asterisk_17036_v1.8.patch (license #5621) patch uploaded by rmudgett
Tested by: rmudgett

(closes issue ASTERISK-18208)
Reported by: Christian Pinedo

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@331461 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/logger.c