Remove some unnecessary log messages and use better Exceptions.
[quix0rs-apt-p2p.git] / apt_p2p / HTTPServer.py
index d72423e083746f79bc353a00627cdb1d1ebccc02..da582fc350d5fb61218d7b7971374adaa5f91390 100644 (file)
@@ -191,9 +191,7 @@ class UploadThrottlingProtocol(ThrottlingProtocol):
     def registerProducer(self, producer, streaming):
         ThrottlingProtocol.registerProducer(self, producer, streaming)
         streamType = getattr(producer, 'stream', None)
-        log.msg('Registered a producer %r with type %r' % (producer, streamType))
         if isinstance(streamType, UploadStream):
-            log.msg('Throttling')
             self.throttle = True