From 9426fa720ec44bf56ff05b70bdeae773cc4d3df8 Mon Sep 17 00:00:00 2001 From: Frederico Marques Date: Fri, 13 Jul 2018 16:32:51 +0100 Subject: [PATCH] BUGFIX: Use log() everywhere --- discoverecs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discoverecs.py b/discoverecs.py index 702f150..6be75f0 100644 --- a/discoverecs.py +++ b/discoverecs.py @@ -142,7 +142,7 @@ def fetcher(fetch_task_arns): for container_definition in task_definition['containerDefinitions']: prometheus = get_environment_var(container_definition['environment'], 'PROMETHEUS') if container_definition['name'] in no_network_binding and prometheus: - print(task['group'] + ':' + container_definition['name'] + ' does not have a networkBinding. Skipping for next run.') + log(task['group'] + ':' + container_definition['name'] + ' does not have a networkBinding. Skipping for next run.') no_cache = True if not no_cache: tasks[task['taskArn']] = task @@ -359,7 +359,7 @@ def discover_tasks(self): if labels: job['labels'].update(labels) jobs[interval].append(job) - print(job) + log(job) self.write_jobs(jobs) def loop(self):