Use log.warning for traceback instead of print_exc.

This commit is contained in:
voussoir 2021-12-21 16:55:46 -08:00
parent 017523bdac
commit 5efad72425
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -7,6 +7,9 @@ from voussoirkit import cacheclass
from voussoirkit import flasktools from voussoirkit import flasktools
from voussoirkit import pathclass from voussoirkit import pathclass
from voussoirkit import stringtools from voussoirkit import stringtools
from voussoirkit import vlogging
log = vlogging.get_logger(__name__)
import etiquette import etiquette
@ -185,7 +188,7 @@ def post_photo_refresh_metadata_core(photo_ids):
try: try:
photo.generate_thumbnail() photo.generate_thumbnail()
except Exception: except Exception:
traceback.print_exc() log.warning(traceback.format_exc())
common.P.commit('photo refresh metadata core') common.P.commit('photo refresh metadata core')