Log test to log/cmd.log

This commit is contained in:
shortcutme 2019-03-16 00:14:11 +01:00
parent 002303a765
commit 1e2dadf75e
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -56,6 +56,7 @@ class TimeFilter(logging.Filter):
except AttributeError:
last = record.relativeCreated
delta = datetime.datetime.fromtimestamp(record.relativeCreated / 1000.0) - datetime.datetime.fromtimestamp(last / 1000.0)
record.relative = '{0:.3f}'.format(delta.seconds + delta.microseconds / 1000000.0)
@ -83,11 +84,13 @@ PluginManager.plugin_manager.loadPlugins()
config.loadPlugins()
config.parse() # Parse again to add plugin configuration options
config.action = "test"
config.debug_socket = True # Use test data for unittests
config.verbose = True # Use test data for unittests
config.tor = "disable" # Don't start Tor client
config.trackers = []
config.data_dir = "src/Test/testdata" # Use test data for unittests
config.initLogging()
from Site import Site
from Site import SiteManager