summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorDaniel Joseph Barnhart Clark <dclark@pobox.com>2009-09-24 06:43:21 +0000
committerDaniel Joseph Barnhart Clark <dclark@pobox.com>2009-09-24 06:43:21 +0000
commitc15bf9db7589cf4b7a49ed28925763ed0ef6cd66 (patch)
tree0098c2e8beb80517fefdc068f344eefee02e5e68 /src/lib
parentd5182b5ca4c018087475121b540495967c32e3e0 (diff)
downloadbcfg2-c15bf9db7589cf4b7a49ed28925763ed0ef6cd66.tar.gz
bcfg2-c15bf9db7589cf4b7a49ed28925763ed0ef6cd66.tar.bz2
bcfg2-c15bf9db7589cf4b7a49ed28925763ed0ef6cd66.zip
Add better debug logging to Fossil plugin, like Bzr.py has
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5458 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Server/Plugins/Fossil.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/Server/Plugins/Fossil.py b/src/lib/Server/Plugins/Fossil.py
index e50a8caff..2b17de2c9 100644
--- a/src/lib/Server/Plugins/Fossil.py
+++ b/src/lib/Server/Plugins/Fossil.py
@@ -22,7 +22,7 @@ class Fossil(Bcfg2.Server.Plugin.Plugin,
# Read revision from bcfg2 repo
if os.path.isfile(fossil_file):
- self.get_revision()
+ revision = self.get_revision()
elif not os.path.isdir(datastore):
logger.error("%s is not a directory" % datastore)
raise Bcfg2.Server.Plugin.PluginInitError
@@ -30,7 +30,8 @@ class Fossil(Bcfg2.Server.Plugin.Plugin,
logger.error("%s is not a file" % fossil_file)
raise Bcfg2.Server.Plugin.PluginInitError
- logger.debug("Initialized fossil plugin with fossil file = %s" % fossil_file)
+ logger.debug("Initialized Fossil.py plugin with %(ffile)s at revision %(frev)s" \
+ % {'ffile': fossil_file, 'frev': revision} )
def get_revision(self):
'''Read fossil revision information for the bcfg2 repository'''