File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed
cdap-common/src/main/java/io/cdap/cdap/common/startup Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change 1717
1818import io .cdap .cdap .common .conf .CConfiguration ;
1919import io .cdap .cdap .common .conf .Constants ;
20- import java .net .URL ;
21- import java .net .URLClassLoader ;
2220import org .slf4j .Logger ;
2321import org .slf4j .LoggerFactory ;
2422
@@ -30,17 +28,10 @@ public class ConfigurationLogger {
3028 private static final Logger LOG = LoggerFactory .getLogger (ConfigurationLogger .class );
3129
3230 public static void logImportantConfig (CConfiguration cConf ) {
33- ClassLoader cl = ClassLoader .getSystemClassLoader ();
3431
35- URL [] urls = (( URLClassLoader ) cl ). getURLs ( );
32+ String classPath = System . getProperty ( "java.class.path" );
3633
37- StringBuilder classPath = new StringBuilder ();
38- LOG .info ("Master classpath:" );
39- for (URL url : urls ) {
40- classPath .append (url .getFile ()).append (":" );
41- }
42- classPath .deleteCharAt (classPath .length () - 1 );
43- LOG .info (classPath .toString ());
34+ LOG .info ("Master classpath: {}" , classPath );
4435
4536 LOG .info ("Important config settings:" );
4637 for (String featureToggleProp : Constants .FEATURE_TOGGLE_PROPS ) {
You can’t perform that action at this time.
0 commit comments