Skip to content

Commit

Permalink
More logging
Browse files Browse the repository at this point in the history
  • Loading branch information
rycus86 committed Feb 27, 2018
1 parent 96219ba commit 76eb4be
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ def check(subdomain, public_ip, dns, ssl, notifications):
dns_result = 'Failed: %s' % ex

notifications.dns_updated(subdomain, dns_result)

else:
logger.info('No DNS update needed for %s' % subdomain)

if ssl.needs_update(subdomain):
try:
Expand All @@ -35,6 +38,9 @@ def check(subdomain, public_ip, dns, ssl, notifications):

notifications.ssl_updated(subdomain, ssl_result)

else:
logger.info('No SSL update needed for %s' % subdomain)


def check_all(discovery, dns, ssl, notifications):
public_ip = dns.get_current_public_ip()
Expand Down

0 comments on commit 76eb4be

Please sign in to comment.