From d1d8a1dcce2b9eb14a3f7dba3847480a015bd4af Mon Sep 17 00:00:00 2001 From: khewonc Date: Wed, 20 May 2020 15:06:12 -0400 Subject: [PATCH] Fix debug log line for job metrics --- .../datadog_checks/kubernetes_state/kubernetes_state.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kubernetes_state/datadog_checks/kubernetes_state/kubernetes_state.py b/kubernetes_state/datadog_checks/kubernetes_state/kubernetes_state.py index b36c9b5eda06e..ba36cea7104e3 100644 --- a/kubernetes_state/datadog_checks/kubernetes_state/kubernetes_state.py +++ b/kubernetes_state/datadog_checks/kubernetes_state/kubernetes_state.py @@ -550,8 +550,7 @@ def _extract_job_timestamp(self, name): if ts.isdigit(): return int(ts) else: - msg = 'Cannot extract ts from job name {}' - self.log.debug(msg, name) + self.log.debug("Cannot extract ts from job name %s", name) return None # Labels attached: namespace, pod