From 5efad7242585fd00098845df9a7ea29638d6588f Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Tue, 21 Dec 2021 16:55:46 -0800 Subject: [PATCH] Use log.warning for traceback instead of print_exc. --- .../etiquette_flask/backend/endpoints/photo_endpoints.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontends/etiquette_flask/backend/endpoints/photo_endpoints.py b/frontends/etiquette_flask/backend/endpoints/photo_endpoints.py index 6366fd9..2ebc606 100644 --- a/frontends/etiquette_flask/backend/endpoints/photo_endpoints.py +++ b/frontends/etiquette_flask/backend/endpoints/photo_endpoints.py @@ -7,6 +7,9 @@ from voussoirkit import cacheclass from voussoirkit import flasktools from voussoirkit import pathclass from voussoirkit import stringtools +from voussoirkit import vlogging + +log = vlogging.get_logger(__name__) import etiquette @@ -185,7 +188,7 @@ def post_photo_refresh_metadata_core(photo_ids): try: photo.generate_thumbnail() except Exception: - traceback.print_exc() + log.warning(traceback.format_exc()) common.P.commit('photo refresh metadata core')