From: Zac Medico Date: Fri, 6 Nov 2009 23:26:32 +0000 (-0000) Subject: Use writemsg instead of print, to send debug messages to stderr. X-Git-Tag: v2.2_rc49~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8cd25b626e32e5cb0d59591fae6f827852fc3868;p=portage.git Use writemsg instead of print, to send debug messages to stderr. svn path=/main/trunk/; revision=14784 --- 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