Commit 18b5c73365c8eae2fad33341b1cc6fc91eceb1ac
1 parent
41c7137e
获取InviteInfo添加异常日志
Showing
1 changed file
with
1 additions
and
1 deletions
src/main/java/com/genersoft/iot/vmp/service/impl/InviteStreamServiceImpl.java
| ... | ... | @@ -117,7 +117,7 @@ public class InviteStreamServiceImpl implements IInviteStreamService { |
| 117 | 117 | + ":*"; |
| 118 | 118 | List<Object> scanResult = RedisUtil.scan(redisTemplate, key); |
| 119 | 119 | if (scanResult.size() != 1) { |
| 120 | - return null; | |
| 120 | + logger.warn("[获取InviteInfo] 发现 key: {}存在多条", key); | |
| 121 | 121 | } |
| 122 | 122 | |
| 123 | 123 | return (InviteInfo) redisTemplate.opsForValue().get(scanResult.get(0)); | ... | ... |