| | |
| | | @Override |
| | | public boolean isConnectLoggable(final ClientConnection connection) |
| | | { |
| | | final long connectionID = connection.getConnectionID(); |
| | | if (connectionID >= 0 || !suppressInternalOperations) |
| | | if (!connection.isInnerConnection() || !suppressInternalOperations) |
| | | { |
| | | switch (policy) |
| | | { |
| | |
| | | @Override |
| | | public boolean isDisconnectLoggable(final ClientConnection connection) |
| | | { |
| | | final long connectionID = connection.getConnectionID(); |
| | | if (connectionID >= 0 || !suppressInternalOperations) |
| | | if (!connection.isInnerConnection() || !suppressInternalOperations) |
| | | { |
| | | switch (policy) |
| | | { |
| | |
| | | */ |
| | | boolean isLoggable(final Operation operation) |
| | | { |
| | | final long connectionID = operation.getConnectionID(); |
| | | if (connectionID < 0) |
| | | { |
| | | // This is an internal operation. |
| | | if (operation.isSynchronizationOperation()) |
| | | { |
| | | return !suppressSynchronizationOperations; |
| | | } |
| | | else |
| | | { |
| | | return !suppressInternalOperations; |
| | | } |
| | | } |
| | | |
| | | return true; |
| | | return !((suppressInternalOperations && operation.isInnerOperation()) |
| | | || (suppressSynchronizationOperations |
| | | && operation.isSynchronizationOperation())); |
| | | } |
| | | } |
| | | |