add logging
parent
a29ea04603
commit
b2fdff0d9e
@ -1,5 +1,10 @@
|
||||
from .app import app
|
||||
import logging
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.run()
|
||||
else:
|
||||
gunicorn_logger = logging.getLogger('gunicorn.error')
|
||||
app.logger.handlers = gunicorn_logger.handlers
|
||||
app.logger.setLevel(gunicorn_logger.level)
|
||||
|
||||
|
Loading…
Reference in New Issue