mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
server/general: add show_sql separate from debug
This commit is contained in:
@ -74,6 +74,7 @@ def create_app():
|
||||
coloredlogs.install(fmt='[%(asctime)-15s] %(name)s %(message)s')
|
||||
if config.config['debug']:
|
||||
logging.getLogger('szurubooru').setLevel(logging.INFO)
|
||||
if config.config['show_sql']:
|
||||
logging.getLogger('sqlalchemy.engine').setLevel(logging.INFO)
|
||||
|
||||
app = falcon.API(
|
||||
|
Reference in New Issue
Block a user