diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-11-07 01:11:33 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-11-07 01:11:33 +0000 |
commit | 0d4856eb936f8c10ef9fdec33aefda94c4490f09 (patch) | |
tree | 35e1a33cbec8299be7eacedba706d508f9502c44 /pym | |
parent | 4ae3e4b1996d47a836dbc5f6ce5146674b1e0384 (diff) | |
download | portage-0d4856eb936f8c10ef9fdec33aefda94c4490f09.tar.gz portage-0d4856eb936f8c10ef9fdec33aefda94c4490f09.tar.bz2 portage-0d4856eb936f8c10ef9fdec33aefda94c4490f09.zip |
Use writemsg instead of print, to send debug messages to stderr. (trunk r14784)
svn path=/main/branches/2.1.7/; revision=14797
Diffstat (limited to 'pym')
-rw-r--r-- | pym/_emerge/depgraph.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 0537f9cfe..50c44f9e8 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 |