Bug 673479

Summary: Add a grep-friendly string to LIBGUESTFS_TRACE output
Product: [Community] Virtualization Tools Reporter: Richard W.M. Jones <rjones>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED UPSTREAM QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: mbooth, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 673477 Environment:
Last Closed: 2011-01-28 14:08:01 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:
Bug Depends On:    
Bug Blocks: 673477    

Description Richard W.M. Jones 2011-01-28 11:00:56 UTC
+++ This bug was initially created as a clone of Bug #673477 +++

When debugging virt-v2v problems, the most useful debug information is normally LIBGUESTFS_TRACE. Occasionally LIBGUESTFS_DEBUG is also useful, but less often. However, it is a problem when these 2 outputs are mixed. DEBUG is significantly more verbose than TRACE (about 100:1 iirc), and it is not trivial to separate their outputs.

It would greatly simplify debugging instructions to users if we could simply request both outputs. The result should:

* Be simple to view mixed, chronologically
* Be simple to separate

Adding a grep-friendly string to TRACE and/or DEBUG output would achieve this. It doesn't really matter what the string(s) is/are.

Comment 1 Richard W.M. Jones 2011-01-28 11:16:39 UTC
Patch posted upstream:
https://www.redhat.com/archives/libguestfs/2011-January/msg00090.html

Comment 3 Richard W.M. Jones 2011-01-28 23:10:56 UTC
(In reply to comment #2)
> Pushed upstream:
> http://git.annexia.org/?p=libguestfs.git;a=commitdiff;h=1d999540bddd7aea7c2d0fef8b15223d4acc645f

That patch broke a regression test.  This commit is
also needed:
http://git.annexia.org/?p=libguestfs.git;a=commitdiff;h=b6c70b3f50472e20a33320e7d76887b011f33c64

Comment 5 Richard W.M. Jones 2011-01-29 07:19:42 UTC
(In reply to comment #4)
> And another one:
> http://git.annexia.org/?p=libguestfs.git;a=commitdiff;h=6975e87153f593fddd5c27435c2e6347825daca9

Ugh ignore comment 4 that, my mistake.