Skip to content

Commit

Permalink
fix(oxtrust): sonar fixes
Browse files Browse the repository at this point in the history
Signed-off-by: shekhar16 <[email protected]>
  • Loading branch information
shekhar16 committed Jan 14, 2025
1 parent e95f8c7 commit 66ee20a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public DocumentStoreConfiguration getDocumentStoreConfiguration() {
DocumentStoreConfiguration documentStoreConfiguration = jansConf.getDocumentStoreConfiguration();
if ((documentStoreConfiguration == null) || (documentStoreConfiguration.getDocumentStoreType() == null)) {
log.error("Failed to read document store configuration from DB. Please check configuration jsDocStoreConf attribute " +
"that must contain document store configuration JSON represented by DocumentStoreConfiguration.class. Appliance DN: " + jansConf.getDn());
"that must contain document store configuration JSON represented by DocumentStoreConfiguration.class. Appliance DN: {0}", jansConf.getDn());
log.info("Creating fallback LOCAL document store configuration ... ");

documentStoreConfiguration = new DocumentStoreConfiguration();
Expand All @@ -84,7 +84,7 @@ public DocumentStoreConfiguration getDocumentStoreConfiguration() {
log.info("LOCAL document store configuration is created.");
}

log.info("Document store configuration: " + documentStoreConfiguration);
log.info("Document store configuration: {0}" , documentStoreConfiguration);
return documentStoreConfiguration;
}

Expand All @@ -95,7 +95,7 @@ public MessageConfiguration getMessageConfiguration() {
MessageConfiguration messageConfiguration = jansConf.getMessageConfiguration();
if (messageConfiguration == null || messageConfiguration.getMessageProviderType() == null) {
log.error("Failed to read message configuration from DB. Please check configuration jsMessageConf attribute " +
"that must contain message configuration JSON represented by MessageConfiguration.class. Appliance DN: " + jansConf.getDn());
"that must contain message configuration JSON represented by MessageConfiguration.class. Appliance DN: {0}" , jansConf.getDn());
log.info("Creating fallback Null message configuration ... ");

messageConfiguration = new MessageConfiguration();
Expand All @@ -105,7 +105,7 @@ public MessageConfiguration getMessageConfiguration() {
log.info("NULL message configuration is created.");
}

log.info("Message configuration: " + messageConfiguration);
log.info("Message configuration: {0}" , messageConfiguration);
return messageConfiguration;
}
}

0 comments on commit 66ee20a

Please sign in to comment.