Skip to content

Commit

Permalink
BUGFIX: Use log() everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederico Marques committed Jul 13, 2018
1 parent f9c71c8 commit 9426fa7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions discoverecs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 9426fa7

Please sign in to comment.