Commit 0b267725 authored by Alok Saldanha's avatar Alok Saldanha
Browse files

#2 replace print() with logging

parent 5c41dbb1
......@@ -8,6 +8,7 @@
# the specific language governing permissions and limitations under the License.
import time
import logging
from cellxgene_gateway.util import current_time_stamp
from cellxgene_gateway.env import ttl
......@@ -32,5 +33,5 @@ class PruneProcessCache:
for process in processes_to_delete:
try:
cache.prune(process)
except Exception as detail:
print("failed to prune process:", detail)
except Exception:
logging.getLogger("werkzeug").exception("failed to prune process")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment