This commit is contained in:
who
2007-11-13 11:44:47 +01:00
parent b79efd1c98
commit 8bbbb07263
13 changed files with 134 additions and 85 deletions

View File

@ -3,7 +3,7 @@ import socket
import Queue
import time
import Event
from logger import Logger
class DynReceiver(threading.Thread):
@ -22,5 +22,5 @@ class DynReceiver(threading.Thread):
try:
self.queue.put_nowait(Event.Event(address, data, int(time.time())))
except Queue.Full:
print "Event %s from %s dropped" % (data, str(address))
Logger.log("Event %s from %s dropped" % (data, str(address)))