Skip to content

Commit b24b70e

Browse files
committed
fix: Don't throw when loading logging config fails
1 parent d78f0af commit b24b70e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

agent/src/main/java/com/appland/appmap/util/tinylog/AppMapConfigurationLoader.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
public class AppMapConfigurationLoader implements ConfigurationLoader {
1717

1818
@Override
19-
public Properties load() throws IOException {
19+
public Properties load() {
2020
Properties properties = new Properties();
2121
final File localConfigFile = new File("appmap-log.local.properties");
2222
final String[] configFiles = {"appmap-log.properties", localConfigFile.getName()};
@@ -28,6 +28,8 @@ public Properties load() throws IOException {
2828
if (stream != null) {
2929
properties.load(stream);
3030
}
31+
} catch (IOException e) {
32+
InternalLogger.log(Level.ERROR, e, "Failed to load " + configFile + " from classloader " + cl);
3133
}
3234
}
3335
}

0 commit comments

Comments
 (0)