Skip to content

Commit

Permalink
Fix logging arguments.
Browse files Browse the repository at this point in the history
Signed-off-by: Achim Kraus <achim.kraus@bosch.io>
  • Loading branch information
Achim Kraus committed Mar 27, 2021
1 parent 323052d commit f80a778
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public OSCoreStack(final NetworkConfig config, final Outbox outbox, final OSCore
ReliabilityLayer reliabilityLayer;
if (config.getBoolean(NetworkConfig.Keys.USE_CONGESTION_CONTROL)) {
reliabilityLayer = CongestionControlLayer.newImplementation(config);
LOGGER.info("Enabling congestion control: {0}", reliabilityLayer.getClass().getSimpleName());
LOGGER.info("Enabling congestion control: {}", reliabilityLayer.getClass().getSimpleName());
} else {
reliabilityLayer = new ReliabilityLayer(config);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1414,7 +1414,7 @@ public void processRecord(Record record, Connection connection) {
if (connectionStore.get(connection.getConnectionId()) != connection) {
// connection removed, then drop record
DROP_LOGGER.debug("Discarding {} record [epoch {}, rseqn {}] received from peer [{}], handshake expired!",
record.getType(), epoch, record.getSequenceNumber(), record.getPeerAddress(), epoch);
record.getType(), epoch, record.getSequenceNumber(), record.getPeerAddress());
if (health != null) {
health.receivingRecord(true);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ boolean isSupportedKeyType(X509Certificate cert) {
String algorithm = cert.getPublicKey().getAlgorithm();
for (ClientCertificateType type : certificateTypes) {
if (!type.isCompatibleWithKeyAlgorithm(algorithm)) {
LOGGER.debug("type: {}, is not compatible with KeyAlgorithm[{}]: {}", type, algorithm);
LOGGER.debug("type: {}, is not compatible with KeyAlgorithm[{}]", type, algorithm);
continue;
}
// KeyUsage is an optional extension which may be used to restrict
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ public static List<Record> fromReader(DatagramReader reader, InetSocketAddress p
return records;
}
} catch (RuntimeException ex) {
LOGGER.debug("Received TLS_CID record, failed to read cid. Discarding ...", ex.getMessage());
LOGGER.debug("Received TLS_CID record, failed to read cid. Discarding ...", ex);
return records;
}
} else {
Expand Down

0 comments on commit f80a778

Please sign in to comment.