mirror of
https://github.com/lilydjwg/archrepo2.git
synced 2025-03-10 12:02:43 +00:00
on_update_notification: better logging
This commit is contained in:
parent
dd343c911b
commit
b4dc45361b
1 changed files with 2 additions and 3 deletions
|
@ -28,8 +28,6 @@ def decode_msg(msg, secret):
|
||||||
return act, int(t)
|
return act, int(t)
|
||||||
|
|
||||||
def main(args, secret):
|
def main(args, secret):
|
||||||
logging.info('started')
|
|
||||||
|
|
||||||
af, socktype, proto, canonname, sockaddr = socket.getaddrinfo(
|
af, socktype, proto, canonname, sockaddr = socket.getaddrinfo(
|
||||||
args.host, args.port, 0, socket.SOCK_DGRAM, 0, 0)[0]
|
args.host, args.port, 0, socket.SOCK_DGRAM, 0, 0)[0]
|
||||||
sock = socket.socket(af, socktype, proto)
|
sock = socket.socket(af, socktype, proto)
|
||||||
|
@ -78,7 +76,8 @@ if __name__ == '__main__':
|
||||||
logging.fatal('REPO_SECRET environment variable not set')
|
logging.fatal('REPO_SECRET environment variable not set')
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
logging.info('started')
|
||||||
try:
|
try:
|
||||||
main(args, secret)
|
main(args, secret)
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
print()
|
logging.info('stopped')
|
||||||
|
|
Loading…
Add table
Reference in a new issue