GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

Commit b8d228ad authored by Cecylia Bocovich's avatar Cecylia Bocovich

Set default log level for gettor to "info"

parent 21645db1
...@@ -10,11 +10,13 @@ ...@@ -10,11 +10,13 @@
# #
# :license: This is Free Software. See LICENSE for license information. # :license: This is Free Software. See LICENSE for license information.
from twisted.logger import Logger from twisted.logger import Logger, LogLevel
from twisted.logger import FilteringLogObserver, LogLevelFilterPredicate
from twisted.application import internet from twisted.application import internet
# Define an application logger # Define an application logger
log = Logger(namespace="gettor") log = Logger(namespace="gettor")
predicate = LogLevelFilterPredicate(defaultLogLevel=LogLevel.info)
log.observer = FilteringLogObserver(log.observer, [predicate])
class BaseService(internet.TimerService): class BaseService(internet.TimerService):
""" """
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment