[asterisk-bugs] [Asterisk 0016786]: [patch] Remove coloring escape sequences from log files.
Asterisk Bug Tracker
noreply at bugs.digium.com
Tue Feb 9 15:39:46 CST 2010
A NOTE has been added to this issue.
======================================================================
https://issues.asterisk.org/view.php?id=16786
======================================================================
Reported By: dodo
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 16786
Category: Core/General
Reproducibility: always
Severity: tweak
Priority: normal
Status: feedback
Asterisk Version: 1.6.0.22
JIRA: SWP-877
Regression: No
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Request Review:
======================================================================
Date Submitted: 2010-02-08 03:41 CST
Last Modified: 2010-02-09 15:39 CST
======================================================================
Summary: [patch] Remove coloring escape sequences from log
files.
Description:
Log files are much more readable without escape sequences.
======================================================================
----------------------------------------------------------------------
(0117915) tilghman (administrator) - 2010-02-09 15:39
https://issues.asterisk.org/view.php?id=16786#c117915
----------------------------------------------------------------------
On the patch itself, please refer to the ast_str structure as opaque, in
case we change the structure in the future. In particular, use
ast_str_buffer to access the internal string and use ast_str_strlen to
access the length of the string, instead of using strlen on the buffer.
Finally, please realize that the return value of term_strip is the
destination buffer, so the command can be placed inline to the output
function, instead of stripping the message on a separate line.
Issue History
Date Modified Username Field Change
======================================================================
2010-02-09 15:39 tilghman Note Added: 0117915
======================================================================
More information about the asterisk-bugs
mailing list