From 8cd25b626e32e5cb0d59591fae6f827852fc3868 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 6 Nov 2009 23:26:32 +0000 Subject: [PATCH] Use writemsg instead of print, to send debug messages to stderr. svn path=/main/trunk/; revision=14784 --- pym/_emerge/depgraph.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 2ff345da6..e8c4514df 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -1133,10 +1133,12 @@ class depgraph(object): if not dep_string: continue if debug: - print() - print("Parent: ", jbigkey) - print("Depstring:", dep_string) - print("Priority:", dep_priority) + writemsg_level("\nParent: %s\n" % (pkg,), + noiselevel=-1, level=logging.DEBUG) + writemsg_level("Depstring: %s\n" % (dep_string,), + noiselevel=-1, level=logging.DEBUG) + writemsg_level("Priority: %s\n" % (dep_priority,), + noiselevel=-1, level=logging.DEBUG) try: @@ -1272,7 +1274,8 @@ class depgraph(object): return 0 if debug: - print("Exiting...", pkg) + writemsg_level("Exiting... %s\n" % (pkg,), + noiselevel=-1, level=logging.DEBUG) return 1 -- 2.26.2