summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSol Jerome <sol.jerome@gmail.com>2011-08-31 17:52:56 -0500
committerSol Jerome <sol.jerome@gmail.com>2011-08-31 17:52:56 -0500
commitb97a6a8ea70db7e708febe008d7bbf73fe7c58e4 (patch)
tree98f1c0ac463d2694f738d800626eeefb49a848e2 /src
parent6e12111b00f892ecf194e843bcabc55d1dba78ac (diff)
downloadbcfg2-b97a6a8ea70db7e708febe008d7bbf73fe7c58e4.tar.gz
bcfg2-b97a6a8ea70db7e708febe008d7bbf73fe7c58e4.tar.bz2
bcfg2-b97a6a8ea70db7e708febe008d7bbf73fe7c58e4.zip
Plugin.py: Add filename to error message (Reported by Kioob on IRC)
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/lib/Server/Plugin.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Server/Plugin.py b/src/lib/Server/Plugin.py
index f22bd5ca4..bf55ad271 100644
--- a/src/lib/Server/Plugin.py
+++ b/src/lib/Server/Plugin.py
@@ -975,7 +975,8 @@ class EntrySet:
for line in open(fpath).readlines():
match = info_regex.match(line)
if not match:
- logger.warning("Failed to match line: %s" % line)
+ logger.warning("Failed to match line in %s: %s" % (fpath,
+ line))
continue
else:
mgd = match.groupdict()