server: fixed bloated logs on user disconnections

This commit is contained in:
Oleg Agafonov 2024-04-05 21:26:25 +04:00
parent 821b0d069f
commit 46b5780e91

View file

@ -449,8 +449,10 @@ public class Session {
logger.warn("SESSION LOCK, possible connection problem - fireCallback - userId: " + userId + " messageId: " + call.getMessageId(), ex); logger.warn("SESSION LOCK, possible connection problem - fireCallback - userId: " + userId + " messageId: " + call.getMessageId(), ex);
} }
} catch (HandleCallbackException ex) { } catch (HandleCallbackException ex) {
// something wrong, maybe connection problem // general error
logger.warn("SESSION CALLBACK EXCEPTION - " + ThreadUtils.findRootException(ex) + ", userId " + userId + ", messageId: " + call.getMessageId(), ex); // can raise on server freeze or normal connection problem from a client side
// no need to print a full stack log here
logger.warn("SESSION CALLBACK EXCEPTION - " + ThreadUtils.findRootException(ex) + ", userId " + userId + ", messageId: " + call.getMessageId());
// do not send data anymore (user must reconnect) // do not send data anymore (user must reconnect)
this.valid = false; this.valid = false;