From b4dc45361b27c4463f60805a7a70dd2815930eaf Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Sun, 19 Oct 2014 19:39:23 +0800 Subject: [PATCH] on_update_notification: better logging --- scripts/on_update_notification | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/on_update_notification b/scripts/on_update_notification index f17a879..2d6ff1f 100755 --- a/scripts/on_update_notification +++ b/scripts/on_update_notification @@ -28,8 +28,6 @@ def decode_msg(msg, secret): return act, int(t) def main(args, secret): - logging.info('started') - af, socktype, proto, canonname, sockaddr = socket.getaddrinfo( args.host, args.port, 0, socket.SOCK_DGRAM, 0, 0)[0] sock = socket.socket(af, socktype, proto) @@ -78,7 +76,8 @@ if __name__ == '__main__': logging.fatal('REPO_SECRET environment variable not set') sys.exit(1) + logging.info('started') try: main(args, secret) except KeyboardInterrupt: - print() + logging.info('stopped')