summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/FileMonitor/__init__.py
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-10-12 10:55:44 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-10-15 09:10:21 -0400
commit0a083d2dd024b193338a61193ffc8d0c0c03561d (patch)
tree02bd94a99df94e6d296c739ec2c57fe9397a6bf5 /src/lib/Bcfg2/Server/FileMonitor/__init__.py
parent48f64b1086b5ce8b42367fbeeb5c46a8fdaba05a (diff)
downloadbcfg2-0a083d2dd024b193338a61193ffc8d0c0c03561d.tar.gz
bcfg2-0a083d2dd024b193338a61193ffc8d0c0c03561d.tar.bz2
bcfg2-0a083d2dd024b193338a61193ffc8d0c0c03561d.zip
FileMonitor: removed extraneous messages about handling 0 events
Diffstat (limited to 'src/lib/Bcfg2/Server/FileMonitor/__init__.py')
-rw-r--r--src/lib/Bcfg2/Server/FileMonitor/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Server/FileMonitor/__init__.py b/src/lib/Bcfg2/Server/FileMonitor/__init__.py
index ec21a744c..72b1d2dd7 100644
--- a/src/lib/Bcfg2/Server/FileMonitor/__init__.py
+++ b/src/lib/Bcfg2/Server/FileMonitor/__init__.py
@@ -265,7 +265,8 @@ class FileMonitor(object):
if lock:
lock.release()
end = time()
- LOGGER.info("Handled %d events in %.03fs" % (count, (end - start)))
+ if count > 0:
+ LOGGER.info("Handled %d events in %.03fs" % (count, (end - start)))
def handle_events_in_interval(self, interval):
""" Handle events for the specified period of time (in