Skip to content

Commit

Permalink
Update log messages in CMSEngine
Browse files Browse the repository at this point in the history
  • Loading branch information
edewata committed Feb 3, 2024
1 parent df80dee commit 9464463
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -685,13 +685,11 @@ public int testLDAPConnection(String name, LdapConnInfo info, String binddn, Str

public void initSecurityProvider() {

logger.info("CMSEngine: Java version: " + System.getProperty("java.version"));

Security.addProvider(new org.mozilla.jss.netscape.security.provider.CMS());

logger.info("CMSEngine: security providers:");
for (Provider provider : Security.getProviders()) {
logger.debug("CMSEngine: - " + provider);
logger.info("CMSEngine: - " + provider);
}
}

Expand Down
10 changes: 10 additions & 0 deletions base/server/src/main/java/com/netscape/cmscore/util/Debug.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,15 @@ public void init(ConfigStore config) throws Exception {
logger.debug("============================================");
logger.debug("===== DEBUG SUBSYSTEM INITIALIZED =======");
logger.debug("============================================");

logger.info("OS name: " + System.getProperty("os.name"));
logger.info("OS version: " + System.getProperty("os.version"));
logger.info("OS arch: " + System.getProperty("os.arch"));

logger.info("Java vendor: " + System.getProperty("java.vendor"));
logger.info("Java version: " + System.getProperty("java.version"));
logger.info("Java home: " + System.getProperty("java.home"));

logger.info("Catalina base: " + System.getProperty("catalina.base"));
}
}

0 comments on commit 9464463

Please sign in to comment.