diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-01-09 15:40:20 -0500 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-01-09 15:40:20 -0500 |
commit | 872122afdb45e8198ef192babf1864a2da1ab021 (patch) | |
tree | c645ecbe3f888559fec66dd833a72b8d65f694a0 /src/lib/Server/Plugins | |
parent | d363d516b4781d1a092cf4e8aafd8fa9295c7b47 (diff) | |
download | bcfg2-872122afdb45e8198ef192babf1864a2da1ab021.tar.gz bcfg2-872122afdb45e8198ef192babf1864a2da1ab021.tar.bz2 bcfg2-872122afdb45e8198ef192babf1864a2da1ab021.zip |
fixed logging in GroupPatterns
Diffstat (limited to 'src/lib/Server/Plugins')
-rw-r--r-- | src/lib/Server/Plugins/GroupPatterns.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/Server/Plugins/GroupPatterns.py b/src/lib/Server/Plugins/GroupPatterns.py index 7733f409f..58b4d4afb 100644 --- a/src/lib/Server/Plugins/GroupPatterns.py +++ b/src/lib/Server/Plugins/GroupPatterns.py @@ -1,9 +1,8 @@ -import lxml.etree import re - +import logging +import lxml.etree import Bcfg2.Server.Plugin - class PackedDigitRange(object): def __init__(self, digit_range): self.sparse = list() @@ -78,6 +77,7 @@ class PatternFile(Bcfg2.Server.Plugin.SingleXMLFileBacked): def __init__(self, filename, fam): Bcfg2.Server.Plugin.SingleXMLFileBacked.__init__(self, filename, fam) self.patterns = [] + self.logger = logging.getLogger(self.__class__.__name__) def Index(self): Bcfg2.Server.Plugin.SingleXMLFileBacked.Index(self) |