REQ-3284: 通过开关控制是否记录云信请求
This commit is contained in:
parent
806b206553
commit
e545d8cd26
@ -44,7 +44,7 @@ public class MessageHistoryNimLogger implements DisposableBean {
|
||||
|
||||
public void logAsync(List<MessageHistory> histories, Object request) {
|
||||
if (CollectionUtils.isEmpty(histories)) return;
|
||||
if (!props.isLogNimRequest()) return;
|
||||
if (!props.isSaveNimRequest()) return;
|
||||
if (shuttingDown.get()) {
|
||||
log.info("logger is shutting down, histories log: {}", JSON.toJSONString(histories));
|
||||
return;
|
||||
|
||||
@ -24,7 +24,7 @@ public class ImProperties {
|
||||
|
||||
private boolean logSuccessNimRequest;
|
||||
|
||||
private boolean logNimRequest = true;
|
||||
private boolean saveNimRequest = true;
|
||||
|
||||
private String controllerToken = "123442";
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user