application: add debug mode that switches logging to debug.

It's no longer required to reconfigure all logging. debug flag
now does it automatically.
This commit is contained in:
Marcin Kuzminski 2018-12-05 13:35:10 +01:00
parent 389e95092c
commit 2e8001e5fa
5 changed files with 177 additions and 39 deletions

View file

@ -1,10 +1,11 @@
################################################################################
## RHODECODE COMMUNITY EDITION CONFIGURATION ##
## RHODECODE COMMUNITY EDITION CONFIGURATION ##
################################################################################
[DEFAULT]
## Debug flag sets all loggers to debug, and enables request tracking
debug = true
################################################################################
@ -414,6 +415,7 @@ search.location = %(here)s/data/index
########################################
## channelstream enables persistent connections and live notification
## in the system. It's also used by the chat system
channelstream.enabled = false
## server address for channelstream server on the backend
@ -490,14 +492,6 @@ appenlight.request_keys_blacklist =
## (by default the client ignores own entries: appenlight_client.client)
appenlight.log_namespace_blacklist =
################################################################################
## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
## execute malicious code after an exception is raised. ##
################################################################################
#set debug = false
# enable debug style page
debug_style = true