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')