3434import javax .net .ssl .SSLParameters ;
3535import javax .net .ssl .TrustManagerFactory ;
3636
37+ import com .oracle .coherence .common .base .Logger ;
38+
3739import com .tangosol .net .CacheFactory ;
3840import com .tangosol .net .Cluster ;
3941import com .tangosol .net .DefaultCacheServer ;
@@ -963,7 +965,12 @@ private Optional<MBeanServerProxy> getMBeanServerProxy() {
963965 if (registry != null ) {
964966 return Optional .ofNullable (registry .getMBeanServerProxy ());
965967 }
968+ else {
969+ logDebug ("CoherenceOperator: MBeanServerProxy not present - registry is null" );
970+ }
966971 }
972+ logDebug ("CoherenceOperator: MBeanServerProxy not present - %s" ,
973+ cluster == null ? "Cluster is null" : "Cluster not running" );
967974 return Optional .empty ();
968975 }
969976
@@ -989,6 +996,9 @@ private Set<String> getDistributedCacheServiceNames(int memberId) {
989996 .map (p -> p .queryNames (mBeanPattern , null ))
990997 .orElse (Collections .emptySet ());
991998
999+ logDebug ("CoherenceOperator: MBeanServerProxy query '%s' found %d MBeans" ,
1000+ mBeanPattern , set .size ());
1001+
9921002 for (String mBean : set ) {
9931003 Map <String , Object > attributes = getMBeanAttributes (mBean , new String [] {"Type" , "StorageEnabled" });
9941004 String type = (String ) attributes .get ("type" );
@@ -1018,7 +1028,7 @@ private void logDebug(String message, Object... args) {
10181028
10191029 private void logDebug (String message ) {
10201030 if (LOGGING_ENABLED ) {
1021- CacheFactory .log (message , CacheFactory .LOG_DEBUG );
1031+ CacheFactory .log (message , CacheFactory .LOG_INFO );
10221032 }
10231033 }
10241034
0 commit comments