Bug 431711

Summary: Control characters should be quoted in log output.
Product: Red Hat Enterprise MRG Reporter: Alan Conway <aconway>
Component: qpid-cppAssignee: messaging-bugs <messaging-bugs>
Status: CLOSED DUPLICATE QA Contact: Kim van der Riet <kim.vdriet>
Severity: low Docs Contact:
Priority: urgent    
Version: beta   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-02-07 03:14:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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 ***