Skip to content

Commit

Permalink
ShenYu Admin Cluster, websocket #5448
Browse files Browse the repository at this point in the history
  • Loading branch information
Aias00 committed Jul 4, 2024
1 parent 520e0ac commit 55f86c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ public void onApplicationEvent(@NotNull final DataChangedEvent event) {
LOG.info("received DataChangedEvent, not master, pass");
return;
}
LOG.info("received DataChangedEvent, dispatching, event:{}", JsonUtils.toJson(event));
if (LOG.isDebugEnabled()) {
LOG.debug("received DataChangedEvent, dispatching, event:{}", JsonUtils.toJson(event));
}
switch (event.getGroupKey()) {
case APP_AUTH:
listener.onAppAuthChanged((List<AppAuthData>) event.getSource(), event.getEventType());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,9 @@ public void onOpen(final ServerHandshake serverHandshake) {

@Override
public void onMessage(final String result) {
LOG.info("onMessage server[{}] result({})", this.getURI().toString(), result);
if (LOG.isDebugEnabled()) {
LOG.debug("onMessage server[{}] result({})", this.getURI().toString(), result);
}

Map<String, Object> jsonToMap = JsonUtils.jsonToMap(result);
Object eventType = jsonToMap.get(RunningModeConstants.EVENT_TYPE);
Expand Down

0 comments on commit 55f86c7

Please sign in to comment.