优化拉流代理注释

pull/685/head
648540858 2022-11-22 17:30:49 +08:00
parent 8ea6e192d9
commit 278264a2c6
2 changed files with 3 additions and 1 deletions

View File

@ -284,6 +284,9 @@ public class StreamProxyServiceImpl implements IStreamProxyService {
result = true;
streamProxy.setEnable(true);
updateStreamProxy(streamProxy);
}else {
logger.info("启用代理失败: {}/{}->{}({})", app, stream, jsonObject.getString("msg"),
streamProxy.getSrc_url() == null? streamProxy.getUrl():streamProxy.getSrc_url());
}
}
return result;

View File

@ -109,7 +109,6 @@ public class StreamProxyController {
logger.info("启用代理: " + app + "/" + stream);
boolean result = streamProxyService.start(app, stream);
if (!result) {
logger.info("启用代理失败: " + app + "/" + stream);
throw new ControllerException(ErrorCode.ERROR100);
}
}