提交 d6d10999 authored 作者: zw.wang's avatar zw.wang

fix: [recorder] 修复录制失败是异常日志的存储

上级 57c3715d
...@@ -217,7 +217,7 @@ class ProcessMessage: ...@@ -217,7 +217,7 @@ class ProcessMessage:
if not event.get('retry_info'): if not event.get('retry_info'):
event['retry_info'] = '[]' event['retry_info'] = '[]'
event['retry_info'] = json.loads(event['retry_info']) event['retry_info'] = json.loads(event['retry_info'].replace('\n', ' '))
retry_count = len(event['retry_info']) retry_count = len(event['retry_info'])
if os.path.isfile(record_result['file_name']): if os.path.isfile(record_result['file_name']):
...@@ -309,7 +309,7 @@ class ProcessMessage: ...@@ -309,7 +309,7 @@ class ProcessMessage:
(file_info, _), error_log = self.stream_record(playback_stream['stream_url'], (file_info, _), error_log = self.stream_record(playback_stream['stream_url'],
start_time, end_time) start_time, end_time)
if error_log: if error_log:
remark += '\n' + error_log remark += ' ' + error_log
file_duration = time_to_seconds(file_info['duration']) file_duration = time_to_seconds(file_info['duration'])
if not os.path.isfile(file_info['file_name']): if not os.path.isfile(file_info['file_name']):
......
...@@ -24,7 +24,7 @@ requires = [ ...@@ -24,7 +24,7 @@ requires = [
setuptools.setup( setuptools.setup(
name='isc-video-record', name='isc-video-record',
version='1.0.0b7', version='1.0.0b8',
description='ISC motion detection playback video stream recording service.', description='ISC motion detection playback video stream recording service.',
long_description=long_description, long_description=long_description,
long_description_content_type='text/markdown', long_description_content_type='text/markdown',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论