restore 2 missing log-lines

This commit is contained in:
meejah 2021-02-12 17:47:26 -07:00
parent 03906ffe0d
commit 215a0f350b
2 changed files with 6 additions and 8 deletions

View File

@ -8,6 +8,7 @@ from zope.interface import (
Attribute,
implementer,
)
from twisted.python import log
from .database import get_db
@ -170,6 +171,11 @@ class UsageTracker(object):
"""
self._backends = set()
self._blur_usage = blur_usage
if blur_usage:
log.msg("blurring access times to %d seconds" % self._blur_usage)
## XXX log.msg("not logging Transit connections to Twisted log")
else:
log.msg("not blurring access times")
def add_backend(self, backend):
"""

View File

@ -250,14 +250,6 @@ class Transit(protocol.ServerFactory):
self.active_connections = ActiveConnections()
self.pending_requests = PendingRequests(self.active_connections)
self.usage = usage
if False:
# these logs-message should be made by the usage-tracker
# .. or in the "tap" setup?
if blur_usage:
log.msg("blurring access times to %d seconds" % self._blur_usage)
log.msg("not logging Transit connections to Twisted log")
else:
log.msg("not blurring access times")
self._debug_log = False
self._rebooted = time.time()