We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1608fb9 commit f3e2453Copy full SHA for f3e2453
javaagent-core/src/main/java/org/hypertrace/agent/core/HypertraceConfig.java
@@ -107,8 +107,8 @@ private static AgentConfig load() throws IOException {
107
static AgentConfig load(String filename) throws IOException {
108
File configFile = new File(filename);
109
if (!configFile.exists() || configFile.isDirectory() || !configFile.canRead()) {
110
- throw new IllegalArgumentException(
111
- String.format("Config file %s either does not exist or cannot be read", configFile));
+ log.error("Config file {} does not exist", filename);
+ return AgentConfig.newBuilder().build();
112
}
113
114
AgentConfig.Builder configBuilder = AgentConfig.newBuilder();
0 commit comments