File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
server/src/com/mirth/connect/server/migration Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 22
33import java .io .File ;
44import java .io .IOException ;
5+ import java .net .URI ;
56import java .util .Map ;
67
78import org .apache .commons .configuration2 .PropertiesConfiguration ;
@@ -36,8 +37,12 @@ private void migrateLog4jProperties() {
3637
3738 builder .save ();
3839
39- // Update log4j2-cli.properties
40- builder = PropertiesConfigurationUtil .createBuilder (new File (ClassPathResource .getResourceURI ("log4j2-cli.properties" )));
40+ // Update log4j2-cli.properties, if exists
41+ URI cliUri = ClassPathResource .getResourceURI ("log4j2-cli.properties" );
42+
43+ if (cliUri == null ) return ;
44+
45+ builder = PropertiesConfigurationUtil .createBuilder (new File (cliUri ));
4146 log4jproperties = builder .getConfiguration ();
4247
4348 consoleCharset = (String ) log4jproperties .getProperty ("appender.console.layout.charset" );
You can’t perform that action at this time.
0 commit comments