[Home]

Summary:ASTERISK-12030: Whenever I reload, asterisk stops logging to /var/log/asterisk/messages.
Reporter:Dennis DeDonatis (dennisd)Labels:
Date Opened:2008-05-15 22:20:33Date Closed:2008-05-19 10:59:23
Priority:MinorRegression?No
Status:Closed/CompleteComponents:General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:If I issue an asterisk CLI reload or reload logger, asterisk stops logging.

It doesn't seem to close /var/log/asterisk/messages, it just stops writing to it.

I looked through main/logger.c but I am unable to figure out why it is doing this.

I find it difficult to believe that no one else has seen this, so there's a good chance I'm doing something strange.  I think I first saw this in beta 8, but I didn't realize it was because of a reload.  

Please let me know if you need me to provide anything else (i.e. you can't reproduce it).  

I wasn't sure what category to put this in, so I put it in General.


****** STEPS TO REPRODUCE ******

If you start up a tail -f /var/log/asterisk/messages and then run asterisk -r you'll see "Remote UNIX connection".  If you reload or reload logger before exiting, you won't ever see anything else in the log file.  The "Remote UNIX connection disconnected" never shows up (nor anything else).
Comments:By: Digium Subversion (svnbot) 2008-05-19 10:57:31

Repository: asterisk
Revision: 117085

U   trunk/main/logger.c

------------------------------------------------------------------------
r117085 | file | 2008-05-19 10:57:30 -0500 (Mon, 19 May 2008) | 4 lines

The logger closes the files it is logging to when reloading so we have to read in the logger configuration even if it has not changed so that the logs get opened again.
(closes issue ASTERISK-12030)
Reported by: DennisD

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=117085

By: Digium Subversion (svnbot) 2008-05-19 10:59:23

Repository: asterisk
Revision: 117087

_U  branches/1.6.0/
U   branches/1.6.0/main/logger.c

------------------------------------------------------------------------
r117087 | file | 2008-05-19 10:59:22 -0500 (Mon, 19 May 2008) | 12 lines

Merged revisions 117085 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r117085 | file | 2008-05-19 13:03:33 -0300 (Mon, 19 May 2008) | 4 lines

The logger closes the files it is logging to when reloading so we have to read in the logger configuration even if it has not changed so that the logs get opened again.
(closes issue ASTERISK-12030)
Reported by: DennisD

........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=117087