[svn-commits] tilghman: branch 1.4 r248582 - /branches/1.4/main/logger.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Wed Feb 24 15:02:23 CST 2010
Author: tilghman
Date: Wed Feb 24 15:02:18 2010
New Revision: 248582
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=248582
Log:
Remove color code sequences from verbose messages that go to logfiles.
(closes issue #16786)
Reported by: dodo
Patches:
logger2.patch uploaded by dodo (license 989)
Tested by: tilghman
Modified:
branches/1.4/main/logger.c
Modified: branches/1.4/main/logger.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/main/logger.c?view=diff&rev=248582&r1=248581&r2=248582
==============================================================================
--- branches/1.4/main/logger.c (original)
+++ branches/1.4/main/logger.c Wed Feb 24 15:02:18 2010
@@ -785,7 +785,7 @@
ast_dynamic_str_thread_set(&buf, BUFSIZ, &log_buf,
"[%s] %s[%ld] %s: ",
date, levels[level], (long)GETTID(), file);
- res = fprintf(chan->fileptr, "%s", buf->str);
+ res = fprintf(chan->fileptr, "%s", term_strip(buf->str, buf->str, strlen(buf->str) + 1));
if (res <= 0 && !ast_strlen_zero(buf->str)) { /* Error, no characters printed */
fprintf(stderr,"**** Asterisk Logging Error: ***********\n");
if (errno == ENOMEM || errno == ENOSPC) {
More information about the svn-commits
mailing list