diff --git a/logprep/metrics/exporter.py b/logprep/metrics/exporter.py index 9acf96672..67d2f6bab 100644 --- a/logprep/metrics/exporter.py +++ b/logprep/metrics/exporter.py @@ -45,7 +45,7 @@ def cleanup_prometheus_multiprocess_dir(self): os.remove(os.path.join(root, file)) for directory in dirs: shutil.rmtree(os.path.join(root, directory), ignore_errors=True) - self._logger.info("Cleaned up %s" % multiprocess_dir) + self._logger.info("Cleaned up %s", multiprocess_dir) def mark_process_dead(self, pid): """ @@ -63,5 +63,5 @@ def run(self): """Starts the default prometheus http endpoint""" self._prepare_multiprocessing() self._server.start() - self._logger.info("Prometheus Exporter started on port %s" % self._port) + self._logger.info("Prometheus Exporter started on port %s", self._port) self.is_running = True