mirror of
https://github.com/lilydjwg/archrepo2.git
synced 2025-03-10 12:02:43 +00:00
better logging
This commit is contained in:
parent
0961fe2dea
commit
556d56d6b5
1 changed files with 2 additions and 0 deletions
|
@ -28,6 +28,8 @@ 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)
|
||||
|
|
Loading…
Add table
Reference in a new issue