Bug 431711 - Control characters should be quoted in log output.
Summary: Control characters should be quoted in log output.
Keywords:
Status: CLOSED DUPLICATE of bug 430121
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-cpp
Version: beta
Hardware: All
OS: Linux
urgent
low
Target Milestone: ---
: ---
Assignee: messaging-bugs
QA Contact: Kim van der Riet
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-02-06 16:41 UTC by Alan Conway
Modified: 2008-02-07 03:14 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-02-07 03:14:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Alan Conway 2008-02-06 16:41:14 UTC
Description of problem:

I turned on tracing and directed the output to a log file. When I grepped the
file, grep said the file was binary. The "file" command said the log was "data"
instead of text. I found lines in the log for each connection that contained:

... ConnectionStartOkBody ... response=^@guest^@guest

The control character "^@" was preventing grep from listing all lines that
contained my pattern.
When I copied the log and edited out "^@", the grep worked as expected.


Additional info:

Debug logging outputs the beginning of message data without quoting control
characters. Control characters should be quoted in log output.

Comment 1 Matthew Farrellee 2008-02-07 03:14:27 UTC

*** This bug has been marked as a duplicate of 430121 ***


Note You need to log in before you can comment on or make changes to this bug.