diff options
author | Ilya <ilyamaschenko@gmail.com> | 2017-06-06 13:16:14 +0900 |
---|---|---|
committer | Ilya <ilyamaschenko@gmail.com> | 2017-06-06 13:16:14 +0900 |
commit | e36b5c0af200438649d5bb98ac2cde61b45bb6bd (patch) | |
tree | b2e65ee9912b6f75d0d3d375646a7e7e970de411 /python.d/web_log.chart.py | |
parent | d46d9f6d6773bd1c793ba8b2c1052a068b06080d (diff) |
web_log plugin: minor fixes
Diffstat (limited to 'python.d/web_log.chart.py')
-rw-r--r-- | python.d/web_log.chart.py | 4 |
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 |