mirror of
https://github.com/CodePhiliaX/Chat2DB.git
synced 2025-07-29 10:43:06 +08:00
remove e.printStackTrace();
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
);
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user