[csw-devel] SF.net SVN: gar:[18488] csw/mgar/gar/v2/lib/python/safe_remove_package.py

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Fri Jun 22 01:01:33 CEST 2012


Revision: 18488
          http://gar.svn.sourceforge.net/gar/?rev=18488&view=rev
Author:   wahwah
Date:     2012-06-21 23:01:33 +0000 (Thu, 21 Jun 2012)
Log Message:
-----------
safe-remove-package: set INFO logging by default

Modified Paths:
--------------
    csw/mgar/gar/v2/lib/python/safe_remove_package.py

Modified: csw/mgar/gar/v2/lib/python/safe_remove_package.py
===================================================================
--- csw/mgar/gar/v2/lib/python/safe_remove_package.py	2012-06-21 15:07:37 UTC (rev 18487)
+++ csw/mgar/gar/v2/lib/python/safe_remove_package.py	2012-06-21 23:01:33 UTC (rev 18488)
@@ -109,8 +109,10 @@
   parser.add_option("--debug", dest="debug", action="store_true")
   parser.add_option("--execute", dest="execute", action="store_true")
   options, args = parser.parse_args()
+  debug_level = logging.INFO
   if options.debug:
-    logging.basicConfig(level=logging.DEBUG)
+    debug_level = logging.DEBUG
+  logging.basicConfig(level=debug_level)
   pr = PackageRemover()
   pr.RemovePackage(options.catalogname, options.execute)
 

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list