Debug info about ffmpeg failure

This commit is contained in:
boyska 2014-04-08 18:06:58 +02:00
parent e42e1a3af5
commit 4fc115c583

View file

@ -196,6 +196,13 @@ class RecAPI(Bottle):
except Exception as exc:
r = ret('FAILED')
r['exception'] = str(exc)
import traceback
tb = traceback.format_exc()
logger.warning(tb)
if get_config()['DEBUG']:
r['exception'] = "%s: %s" % (str(exc), tb)
r['traceback'] = tb
return r
return ret('WIP')
@ -336,3 +343,5 @@ if __name__ == '__main__':
common_pre()
logger.warn("Usage of server.py is deprecated; use cli.py")
main_cmd()
# vim: set ts=4 sw=4 et ai ft=python: