summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2013-03-27 13:39:00 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2013-03-27 16:57:18 -0400
commit810bed32be1edf6c79cf0952029d31339461eaf9 (patch)
treed1492536b0926fc044e07fea2ef3c5ac56b1ea48
parent26ba8791756c180da86b6dc3eecb6ebf03ee23f5 (diff)
downloadbcfg2-810bed32be1edf6c79cf0952029d31339461eaf9.tar.gz
bcfg2-810bed32be1edf6c79cf0952029d31339461eaf9.tar.bz2
bcfg2-810bed32be1edf6c79cf0952029d31339461eaf9.zip
Inotify: use correct logger
-rw-r--r--src/lib/Bcfg2/Server/FileMonitor/Inotify.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/Bcfg2/Server/FileMonitor/Inotify.py b/src/lib/Bcfg2/Server/FileMonitor/Inotify.py
index cdd52dbb9..2cdf27ed8 100644
--- a/src/lib/Bcfg2/Server/FileMonitor/Inotify.py
+++ b/src/lib/Bcfg2/Server/FileMonitor/Inotify.py
@@ -3,14 +3,11 @@ support. """
import os
import errno
-import logging
import pyinotify
from Bcfg2.Compat import reduce # pylint: disable=W0622
from Bcfg2.Server.FileMonitor import Event
from Bcfg2.Server.FileMonitor.Pseudo import Pseudo
-LOGGER = logging.getLogger(__name__)
-
class Inotify(Pseudo, pyinotify.ProcessEvent):
""" File monitor backend with `inotify
@@ -123,8 +120,9 @@ class Inotify(Pseudo, pyinotify.ProcessEvent):
try:
watch = self.watchmgr.watches[ievent.wd]
except KeyError:
- LOGGER.error("Error handling event %s for %s: Watch %s not found" %
- (action, ievent.pathname, ievent.wd))
+ self.logger.error("Error handling event %s for %s: "
+ "Watch %s not found" %
+ (action, ievent.pathname, ievent.wd))
return
# FAM-style file monitors return the full path to the parent
# directory that is being watched, relative paths to anything