Summary: | ASTERISK-00462: [patch] verbose level | ||
Reporter: | zoa (zoa) | Labels: | |
Date Opened: | 2003-10-30 06:53:00.000-0600 | Date Closed: | 2004-09-25 02:52:04 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | Core/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) 20040110__remote_log.diff.txt ( 1) 20040111__bug_466.diff.txt | |
Description: | When connected to asterisk with -r (or even with -vvvvvvvvvvvvvvr) you will get no notices. (Like empty registration or no valid context found), or no compatible codecs found. This makes it very hard to debug users from production servers without taking the server down. | ||
Comments: | By: John Todd (jtodd) 2003-10-30 13:51:32.000-0600 Are these notices able to be found in the /var/log/asterisk/messages file? By: zoa (zoa) 2003-10-31 03:22:55.000-0600 just checked and they do appear in the /var/log/asterisk/messages. By: Tilghman Lesher (tilghman) 2003-11-01 09:33:02.000-0600 The problem is that these messages are in fact not verbose messages, but instead log messages. See logger.c: 304 in the function ast_log(). We're accustomed to seeing these on the console, as all log messages are printed not just to logfiles, but also to stdout. The question is, should we be able to see log messages on a remote console via some sort of remote switch? Probably, but there is no facility right now to limit messages on the remote console. It's currently either all or nothing (see logger.c:393). By: Tilghman Lesher (tilghman) 2003-11-01 10:31:38.000-0600 Patch uploaded. This patch adds the -l option to allow remote consoles to see log messages. Use as: 'asterisk -rl'. I should note that the -l option doesn't do anything unless you have logging enabled on the console via /etc/asterisk/logger.conf edited on: 11-01-03 10:32 By: Mark Spencer (markster) 2003-11-04 23:44:03.000-0600 Waiting for new patch with ast_verbose instead, and double checking ast_log is not called from ast_verbose. By: zoa (zoa) 2004-01-09 19:02:02.000-0600 any updates ? This (0000466) seems related to 0000587 and 0000599 By: Tilghman Lesher (tilghman) 2004-01-11 00:00:22.000-0600 New patch that uses ast_verbose() is now uploaded. By: jerjer (jerjer) 2004-01-11 04:06:44.000-0600 output works, but is really messed up Direct copy/paste Example: == Spawn extension (default, 452, 4) exited non-zero on 'SIP/-0815c638' Jan 11 05:14:13 DEBUG[155668]: File chan_iax2.c, Line 5696 (cache_get_callno): Jan 11 05:14:13 DEBUG[155668]: File chan_iax2.c, Line 5696 (cache_get_callno): -- Call accepted by 66.225.202.72 (format UNKN) Jan 11 05:14:13 DEBUG[155668]: File chan_sip.c, Line 1081 (sip_hangup): Jan 11 05:14:13 DEBUG[155668]: File chan_sip.c, Line 1081 (sip_hangup): Jan 11 05:14:13 DEBUG[155668]: File chan_sip.c, Line 974 (find_user): Jan 11 05:14:13 DEBUG[155668]: File chan_sip.c, Line 1081 (sip_hangup): Jan 11 05:14:13 DEBUG[155668]: File chan_sip.c, Line 974 (find_user): Jan 11 05:14:13 DEBUG[40966]: File chan_sip.c, Line 567 (__sip_ack): psycho*CLI> By: ww (ww) 2004-01-12 11:13:42.000-0600 this is implemented by the logger changes from bug 587. |