X-Git-Url: http://average.org/gitweb/?a=blobdiff_plain;f=gps303%2Fcollector.py;h=8bcca303a627e75b9220fa89d0cdf5f81f761357;hb=faa8ce9d87530105ec2ad2f4809a9ace581a2ad6;hp=921833c083be0ac8aecda838a338a4f72b5f818c;hpb=5d056391aed17388fb8c2bfe71fd9eade2fe5c55;p=loctrkd.git diff --git a/gps303/collector.py b/gps303/collector.py index 921833c..8bcca30 100644 --- a/gps303/collector.py +++ b/gps303/collector.py @@ -100,6 +100,7 @@ class Clients: def add(self, clntsock, clntaddr): fd = clntsock.fileno() + log.info("Start serving fd %d from %s", fd, clntaddr) self.by_fd[fd] = Client(clntsock, clntaddr) return fd @@ -121,6 +122,12 @@ class Clients: if proto_of_message(packet) == LOGIN.PROTO: # Could do blindly... self.by_imei[clnt.imei] = clnt result.append((clnt.imei, when, peeraddr, packet)) + log.debug( + "Received from %s (IMEI %s): %s", + peeraddr, + clnt.imei, + packet.hex(), + ) return result def response(self, resp):