[Zope-CVS] CVS: Packages/zpkgtools/bin - zpkg:1.14
Fred L. Drake, Jr.
fred at zope.com
Thu Mar 18 16:02:14 EST 2004
Update of /cvs-repository/Packages/zpkgtools/bin
In directory cvs.zope.org:/tmp/cvs-serv2677
Modified Files:
zpkg
Log Message:
make sure the logging package is initialized in a rational way
=== Packages/zpkgtools/bin/zpkg 1.13 => 1.14 ===
--- Packages/zpkgtools/bin/zpkg:1.13 Thu Mar 18 13:34:44 2004
+++ Packages/zpkgtools/bin/zpkg Thu Mar 18 16:02:13 2004
@@ -13,6 +13,7 @@
#
##############################################################################
+import logging
import optparse
import os
import shutil
@@ -236,6 +237,8 @@
return 2
resource = args[0]
+ root_logger = logging.getLogger()
+ root_logger.addHandler(logging.StreamHandler())
try:
app = Application(options, resource, program)
app.run()
More information about the Zope-CVS
mailing list