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 2
2
3
3
import java .io .File ;
4
4
import java .io .IOException ;
5
+ import java .net .URI ;
5
6
import java .util .Map ;
6
7
7
8
import org .apache .commons .configuration2 .PropertiesConfiguration ;
@@ -36,8 +37,12 @@ private void migrateLog4jProperties() {
36
37
37
38
builder .save ();
38
39
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 ));
41
46
log4jproperties = builder .getConfiguration ();
42
47
43
48
consoleCharset = (String ) log4jproperties .getProperty ("appender.console.layout.charset" );
You can’t perform that action at this time.
0 commit comments