changeset 556:10c0492da014

Use logging instead of print
author Bjoern Ricks <bricks@intevation.de>
date Fri, 02 Sep 2011 08:43:23 +0000
parents 3105488b3eab
children 9824e409388b
files treepkg/packager.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/treepkg/packager.py	Tue May 31 09:25:51 2011 +0000
+++ b/treepkg/packager.py	Fri Sep 02 08:43:23 2011 +0000
@@ -596,13 +596,13 @@
     pkg_dir = util.filenameproperty("pkg")
 
     def init_treepkg(self):
-        print "Initializing", self.name
+        logging.info("Initializingi %s" % self.name)
         if not os.path.exists(self.base_dir):
-            print "creating %s" % (self.base_dir,)
+            logging.debug("creating %s" % (self.base_dir,))
             util.ensure_directory(self.base_dir)
         # TODO: handle case where debian directory is in version control
         if not os.path.exists(self.debian_dir):
-            print ("TODO: the debian directory %s still has to be created"
+            logging.debug("TODO: the debian directory %s still has to be created"
                    % (self.debian_dir,))
 
     def determine_dependencies(self):
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)