fix: Replace print() with logger in flask
This commit is contained in:
parent
ace63948bf
commit
4b47266628
1 changed files with 4 additions and 2 deletions
|
|
@ -1,3 +1,5 @@
|
|||
import logging
|
||||
logger = logging.getLogger(__name__)
|
||||
from flask import Flask
|
||||
|
||||
app = Flask(__name__)
|
||||
|
|
@ -5,5 +7,5 @@ app.config["DEBUG"] = True
|
|||
from blueprintapp.apps.admin import admin # noqa: E402
|
||||
from blueprintapp.apps.frontend import frontend # noqa: E402
|
||||
|
||||
app.register_blueprint(admin)
|
||||
app.register_blueprint(frontend)
|
||||
app.register_bluelogger.info(admin)
|
||||
app.register_bluelogger.info(frontend)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue