From bc69e11f9be05d2c698b2aa7af1aa3f3d380e912 Mon Sep 17 00:00:00 2001 From: Son NK <> Date: Mon, 8 Mar 2021 12:09:10 +0100 Subject: [PATCH] enable color log when dev --- server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server.py b/server.py index 20950665..81353a2a 100644 --- a/server.py +++ b/server.py @@ -26,7 +26,7 @@ from sentry_sdk.integrations.flask import FlaskIntegration from sentry_sdk.integrations.sqlalchemy import SqlalchemyIntegration from werkzeug.middleware.proxy_fix import ProxyFix -from app import paddle_utils, s3 +from app import paddle_utils, s3, config from app.admin_model import ( SLAdminIndexView, UserAdmin, @@ -823,6 +823,7 @@ window.location.href = "/"; def local_main(): + config.COLOR_LOG = True app = create_app() # enable flask toolbar