From b2ab8604a92a899ba31634e49e826c2b796da23e Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期一, 29 七月 2024 19:39:12 +0800 Subject: [PATCH] 添加录像日志 --- repository/captureRepo.go | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/repository/captureRepo.go b/repository/captureRepo.go index 5c86f0f..162f8a5 100644 --- a/repository/captureRepo.go +++ b/repository/captureRepo.go @@ -325,7 +325,11 @@ MsgId: msgId, } + logger.Debug("Pub record message %s, %s", deviceId,msgId) body, _ := json.Marshal(&msg) - util.HttpPost(config.ForwardConf.RecordServer, nil, body) + _,err := util.HttpPost(config.ForwardConf.RecordServer, nil, body) + if err != nil { + logger.Warn(err.Error()) + } } -- Gitblit v1.8.0