xtracthub / xtract-service

Globus Labs Xtract: Extract metadata from distributed data sets.
6 stars 1 forks source link

current_app logging throughout (no prints) #67

Open tskluzac opened 2 years ago

tskluzac commented 2 years ago

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.

tskluzac commented 2 years ago

Resolving this will also resolve https://github.com/xtracthub/xtract-service/issues/5