mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 10:40:06 -08:00
server: fixed bloated logs on user disconnections
This commit is contained in:
parent
821b0d069f
commit
46b5780e91
1 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue