Skip to content

Commit

Permalink
More logging
Browse files Browse the repository at this point in the history
  • Loading branch information
rycus86 committed Feb 25, 2018
1 parent 03ba969 commit 5d1d9a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ def check(subdomain, public_ip, dns, ssl, notifications):
def check_all(discovery, dns, ssl, notifications):
public_ip = dns.get_current_public_ip()

logger.info('Starting checks with public IP: %s' % public_ip)

for subdomain in discovery.iter_subdomains():
check(subdomain, public_ip, dns, ssl, notifications)

Expand Down Expand Up @@ -74,7 +76,7 @@ def exit_app():
signal.signal(signal.SIGINT, lambda *x: exit_app())
signal.signal(signal.SIGTERM, lambda *x: exit_app())

signal.signal(signal.SIGHUP, scheduler.run_now)
signal.signal(signal.SIGHUP, lambda *x: scheduler.run_now())


def setup_metrics():
Expand Down

0 comments on commit 5d1d9a5

Please sign in to comment.