1
0
mirror of synced 2025-02-17 11:18:33 +01:00

Add ability to enable/disable verbose logging for production installations of services.

This commit is contained in:
Jennifer Taylor 2022-10-15 19:40:59 +00:00
parent 25e162042a
commit f11fa7de1d
2 changed files with 6 additions and 1 deletions

View File

@ -58,7 +58,7 @@ def receive_request(path: str) -> Response:
dataprovider = Data(requestconfig)
try:
dispatch = Dispatch(requestconfig, dataprovider, True)
dispatch = Dispatch(requestconfig, dataprovider, config["verbose"])
resp = dispatch.handle(req)
if resp is None:
@ -159,6 +159,9 @@ if __name__ == "__main__":
if args.read_only:
config["database"]["read_only"] = True
# Force full verbose output when running as a debug app.
config["verbose"] = True
# Register game handlers
register_games()

View File

@ -84,5 +84,7 @@ cache_dir: '/tmp'
# Number of seconds to preserve event logs before deleting them.
# Set to zero or delete to disable deleting logs.
event_log_duration: 2592000
# Whether we log verbosely (full packet request and response) to web server logs or not.
verbose: true
# Frontend theme directory where sitewide CSS and favicon should be found.
theme: "default"