summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorSol Jerome <solj@ices.utexas.edu>2009-05-29 15:42:24 +0000
committerSol Jerome <solj@ices.utexas.edu>2009-05-29 15:42:24 +0000
commitadcd1fa05b67fe468daadbf7aa3e0fe83e740e8a (patch)
treed389b7bb7613c984c23fc573dcc4f4822fb02aa3 /src/lib
parentffff02894d23210fb8d60f85cbdb33ada5b26859 (diff)
downloadbcfg2-adcd1fa05b67fe468daadbf7aa3e0fe83e740e8a.tar.gz
bcfg2-adcd1fa05b67fe468daadbf7aa3e0fe83e740e8a.tar.bz2
bcfg2-adcd1fa05b67fe468daadbf7aa3e0fe83e740e8a.zip
Send messages to logger
Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5263 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Server/Plugins/Packages.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Server/Plugins/Packages.py b/src/lib/Server/Plugins/Packages.py
index 01e25c96f..43fd9cf6b 100644
--- a/src/lib/Server/Plugins/Packages.py
+++ b/src/lib/Server/Plugins/Packages.py
@@ -315,8 +315,8 @@ class Packages(Bcfg2.Server.Plugin.Plugin,
try:
xdata = lxml.etree.parse(self.data + '/config.xml').getroot()
except IOError, e:
- print("Failed to read Packages configuration. Have you"
- " created your config.xml file?")
+ self.logger.error("Failed to read Packages configuration. Have"
+ " you created your config.xml file?")
raise Bcfg2.Server.Plugin.PluginInitError
self.sources = []
for s in xdata.findall('APTSource'):