[asterisk-commits] qwell: branch 1.8 r307092 - /branches/1.8/main/logger.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Feb 8 15:24:08 CST 2011
Author: qwell
Date: Tue Feb 8 15:24:01 2011
New Revision: 307092
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=307092
Log:
Fix issue with verbose messages not showing on remote console.
This code was reworked recently, and since the logchannel list hadn't been
created yet at this point, and it was a verbose message, it was being dropped
on the floor. Now it'll continue on to where it should be handled.
(closes issue #18580)
Reported by: pabelanger
Modified:
branches/1.8/main/logger.c
Modified: branches/1.8/main/logger.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/logger.c?view=diff&rev=307092&r1=307091&r2=307092
==============================================================================
--- branches/1.8/main/logger.c (original)
+++ branches/1.8/main/logger.c Tue Feb 8 15:24:01 2011
@@ -1112,20 +1112,18 @@
if (!(buf = ast_str_thread_get(&log_buf, LOG_BUF_INIT_SIZE)))
return;
- if (AST_RWLIST_EMPTY(&logchannels)) {
+ if (level != __LOG_VERBOSE && AST_RWLIST_EMPTY(&logchannels)) {
/*
* we don't have the logger chain configured yet,
* so just log to stdout
*/
- if (level != __LOG_VERBOSE) {
- int result;
- va_start(ap, fmt);
- result = ast_str_set_va(&buf, BUFSIZ, fmt, ap); /* XXX BUFSIZ ? */
- va_end(ap);
- if (result != AST_DYNSTR_BUILD_FAILED) {
- term_filter_escapes(ast_str_buffer(buf));
- fputs(ast_str_buffer(buf), stdout);
- }
+ int result;
+ va_start(ap, fmt);
+ result = ast_str_set_va(&buf, BUFSIZ, fmt, ap); /* XXX BUFSIZ ? */
+ va_end(ap);
+ if (result != AST_DYNSTR_BUILD_FAILED) {
+ term_filter_escapes(ast_str_buffer(buf));
+ fputs(ast_str_buffer(buf), stdout);
}
return;
}
More information about the asterisk-commits
mailing list