diff options
author | Sol Jerome <solj@ices.utexas.edu> | 2009-05-29 15:42:24 +0000 |
---|---|---|
committer | Sol Jerome <solj@ices.utexas.edu> | 2009-05-29 15:42:24 +0000 |
commit | adcd1fa05b67fe468daadbf7aa3e0fe83e740e8a (patch) | |
tree | d389b7bb7613c984c23fc573dcc4f4822fb02aa3 /src/lib | |
parent | ffff02894d23210fb8d60f85cbdb33ada5b26859 (diff) | |
download | bcfg2-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.py | 4 |
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'): |