@cryptotaxi247 / netdata-1 / commits / e36b5c0af

web_log plugin: minor fixes

Ilya committed Jun 6, 2017 at 13:16 UTC e36b5c0af200438649d5bb98ac2cde61b45bb6bd
1 file changed +2 -2
python.d/web_log.chart.py
+2 -2
@@ -264,9 +264,8 @@ class Service(LogService):
264 if not self.log_path:
265 self.error('log path is not specified')
266 return False
267 - self._find_recent_log_file()
267
269 - if not access(self.log_path, R_OK):
268 + if not (self._find_recent_log_file() and access(self.log_path, R_OK)):
269 self.error('%s not readable or not exist' % self.log_path)
270 return False
271
@@ -285,6 +284,7 @@ class Service(LogService):
284 if self.Job.check():
285 self.order = self.Job.order
286 self.definitions = self.Job.definitions
287 + self.info('Current log file: %s' % self.log_path)
288 return True
289 return False
290