Add ability to enable/disable verbose logging for production installations of services.
This commit is contained in:
parent
25e162042a
commit
f11fa7de1d
@ -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()
|
||||
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user