Given the high number of threads running on our elastic beanstalk cluster, we should have replace all print statements with current_app logging statements. This can apparently easily be done across the blueprints/application by
from flask import current_app
and then typical logger statements like
current_app.logger.info, current_app.logger.error, etc.
Given the high number of threads running on our elastic beanstalk cluster, we should have replace all
print
statements withcurrent_app
logging statements. This can apparently easily be done across the blueprints/application byfrom flask import current_app
and then typical logger statements like
current_app.logger.info
,current_app.logger.error
, etc.