Commit 0a0d3c2f authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

Merge branch 'logging-improve' into 'master'

Improve logging in case of failures in preprocessing

See merge request !39
parents a04c202c 238158bb
Pipeline #30806 passed with stages
in 28 minutes and 11 seconds
......@@ -4,9 +4,12 @@
import six
import logging
from .. import utils
logger = logging.getLogger("")
class Wrapper(
"""Wrapper class to run image preprocessing algorithms on video data.
......@@ -116,7 +119,6 @@ class Wrapper(
preprocessed : :py:class:``
A frame container that contains the preprocessed frames.
fc = utils.FrameContainer()
for index, frame, _ in frames:
......@@ -136,6 +138,8 @@ class Wrapper(
quality = None
# add image to frame container
fc.add(index, preprocessed, quality)
logger.warning('Processing of frame %s failed.', index)
if not len(fc):
return None
Supports Markdown
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