remove e.printStackTrace();

This commit is contained in:
SwallowGG
2024-04-25 11:55:26 +08:00
parent 1900faa2ae
commit 0948376c64
14 changed files with 30 additions and 16 deletions

View File

@ -539,7 +539,7 @@ public class ChatController {
sseEmitter.send(SseEmitter.event().id("765431").name("An exception occurs!").data(throwable.getMessage())
.reconnectTime(3000));
} catch (IOException e) {
e.printStackTrace();
log.error("An exception occurs!{}", e.getMessage(), e);
}
}
);

View File

@ -209,7 +209,6 @@ public class WsServer {
@OnError
public void onError(Session session, Throwable error) {
log.error("An error occurred:{}Session ID {}", error.getMessage(), session.getId(), error);
error.printStackTrace();
}
/**
@ -244,7 +243,6 @@ public class WsServer {
}
} catch (IOException e) {
log.error("Error sending message{}", e.getMessage());
e.printStackTrace();
}
}
}