You've already forked FrameTour-BE
style(log): 移除日志输出语句
- 移除了 BceFaceBodyAdapter 中无法访问URL图片的警告日志 - 移除了 VideoPieceGetter 中计数器更新和进度检查的调试日志 - 清理了设备关联计数器相关的日志输出 - 移除了 placeholder 完成状态的日志记录 - 删除了进度检查相关的统计日志输出
This commit is contained in:
@@ -212,12 +212,12 @@ public class VideoPieceGetter {
|
||||
AtomicInteger pairCount = currentUnFinPlaceholder.get(pairDeviceId.toString());
|
||||
if (pairCount != null) {
|
||||
int remaining = pairCount.decrementAndGet();
|
||||
log.info("[计数器更新] 关联设备 {} 计数器递减,剩余={}, currentUnFinPlaceholder总数={}",
|
||||
pairDeviceId, remaining, currentUnFinPlaceholder.size());
|
||||
// log.info("[计数器更新] 关联设备 {} 计数器递减,剩余={}, currentUnFinPlaceholder总数={}",
|
||||
// pairDeviceId, remaining, currentUnFinPlaceholder.size());
|
||||
if (remaining <= 0) {
|
||||
currentUnFinPlaceholder.remove(pairDeviceId.toString());
|
||||
log.debug("[Placeholder完成] 设备 {} 的placeholder已满足并移除,剩余设备数={}",
|
||||
pairDeviceId, currentUnFinPlaceholder.size());
|
||||
// log.debug("[Placeholder完成] 设备 {} 的placeholder已满足并移除,剩余设备数={}",
|
||||
// pairDeviceId, currentUnFinPlaceholder.size());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -229,25 +229,17 @@ public class VideoPieceGetter {
|
||||
AtomicInteger count = currentUnFinPlaceholder.get(faceSample.getDeviceId().toString());
|
||||
if (count != null) {
|
||||
int remaining = count.decrementAndGet();
|
||||
log.info("[计数器更新] 设备 {} 计数器递减,剩余={}, currentUnFinPlaceholder总数={}",
|
||||
faceSample.getDeviceId(), remaining, currentUnFinPlaceholder.size());
|
||||
// log.info("[计数器更新] 设备 {} 计数器递减,剩余={}, currentUnFinPlaceholder总数={}",
|
||||
// faceSample.getDeviceId(), remaining, currentUnFinPlaceholder.size());
|
||||
if (remaining <= 0) {
|
||||
currentUnFinPlaceholder.remove(faceSample.getDeviceId().toString());
|
||||
log.debug("[Placeholder完成] 设备 {} 的placeholder已满足并移除,剩余设备数={}",
|
||||
faceSample.getDeviceId(), currentUnFinPlaceholder.size());
|
||||
// log.debug("[Placeholder完成] 设备 {} 的placeholder已满足并移除,剩余设备数={}",
|
||||
// faceSample.getDeviceId(), currentUnFinPlaceholder.size());
|
||||
}
|
||||
}
|
||||
|
||||
// 如果有templateId,检查是否所有placeholder都已满足
|
||||
if (templatePlaceholder != null) {
|
||||
int totalPlaceholderCount = templatePlaceholder.size();
|
||||
int remainingCount = currentUnFinPlaceholder.values().stream()
|
||||
.mapToInt(AtomicInteger::get)
|
||||
.sum();
|
||||
log.info("[进度检查] 当前进度:已完成 {}/{},剩余 {} 个placeholder未满足,剩余设备数={}",
|
||||
totalPlaceholderCount - remainingCount, totalPlaceholderCount, remainingCount,
|
||||
currentUnFinPlaceholder.size());
|
||||
|
||||
if (currentUnFinPlaceholder.isEmpty()) {
|
||||
// 使用 compareAndSet 保证原子性,避免多线程重复调用 callback
|
||||
if (invoke.compareAndSet(false, true)) {
|
||||
|
||||
Reference in New Issue
Block a user