Use log.warning for traceback instead of print_exc.
This commit is contained in:
parent
017523bdac
commit
5efad72425
1 changed files with 4 additions and 1 deletions
|
@ -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')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue