Use either logger if-guard or lambda, not both.
@@ -308,11 +308,8 @@ class VdsVisitor extends VisitorDataHandler implements Visitor {
}
} finally {
session.destroy();
-
- if (log.isLoggable(LogLevel.DEBUG)) {
log.log(LogLevel.DEBUG, () -> session.getTrace().toString());
}
- }
query.trace(session.getTrace().toString(), false, 9);
