summaryrefslogtreecommitdiffstats
path: root/python.d/web_log.chart.py
diff options
context:
space:
mode:
authorIlya <ilyamaschenko@gmail.com>2017-06-06 13:16:14 +0900
committerIlya <ilyamaschenko@gmail.com>2017-06-06 13:16:14 +0900
commite36b5c0af200438649d5bb98ac2cde61b45bb6bd (patch)
treeb2e65ee9912b6f75d0d3d375646a7e7e970de411 /python.d/web_log.chart.py
parentd46d9f6d6773bd1c793ba8b2c1052a068b06080d (diff)
web_log plugin: minor fixes
Diffstat (limited to 'python.d/web_log.chart.py')
-rw-r--r--python.d/web_log.chart.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python.d/web_log.chart.py b/python.d/web_log.chart.py
index ba345dd8d5..f914937ab5 100644
--- a/python.d/web_log.chart.py
+++ b/python.d/web_log.chart.py
@@ -264,9 +264,8 @@ class Service(LogService):
if not self.log_path:
self.error('log path is not specified')
return False
- self._find_recent_log_file()
- if not access(self.log_path, R_OK):
+ if not (self._find_recent_log_file() and access(self.log_path, R_OK)):
self.error('%s not readable or not exist' % self.log_path)
return False
@@ -285,6 +284,7 @@ class Service(LogService):
if self.Job.check():
self.order = self.Job.order
self.definitions = self.Job.definitions
+ self.info('Current log file: %s' % self.log_path)
return True
return False