Skip to content

Commit

Permalink
Removed useless log call in KapuaSecurityBrokerFilter
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Mezzasalma <claudio.mezzasalma@eurotech.com>
  • Loading branch information
Claudio Mezzasalma committed Aug 10, 2020
1 parent d26cea5 commit 3efcdb4
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,6 @@ private Account getAccount(KapuaId scopeId) {
@Override
public void removeConnection(ConnectionContext context, ConnectionInfo info, Throwable error)
throws Exception {
logger.error("Throwable on remove connection: {}", error!=null ? error.getMessage() : "N/A");
if (!isPassThroughConnection(context)) {
Context loginRemoveConnectionTimeContext = loginMetric.getRemoveConnectionTime().time();
KapuaConnectionContext kcc = null;
Expand Down Expand Up @@ -504,8 +503,8 @@ public void removeConnection(ConnectionContext context, ConnectionInfo info, Thr
}
}
super.removeConnection(context, info, error);
// context may be null according to isPassThroughConnection(context)
context.setSecurityContext(null);
// context may be null according to isPassThroughConnection(context)
context.setSecurityContext(null);
}

// ------------------------------------------------------------------
Expand Down

0 comments on commit 3efcdb4

Please sign in to comment.