Skip to content

Commit 446b687

Browse files
authored
Fix logging configuration errors (#1922)
1 parent 15a0321 commit 446b687

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

agent/agent-tooling/src/main/java/com/microsoft/applicationinsights/agent/internal/configuration/ConfigurationBuilder.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,11 @@ static Configuration getConfigurationFromConfigFile(Path configPath, boolean str
567567
}
568568
} catch (JsonMappingException | JsonParseException ex) {
569569
throw new FriendlyException(
570-
"Error parsing configuration from file: " + configPath.toAbsolutePath(),
570+
"Error parsing configuration from file: "
571+
+ configPath.toAbsolutePath()
572+
+ System.lineSeparator()
573+
+ System.lineSeparator()
574+
+ ex.getMessage(),
571575
"Learn more about configuration options here: https://go.microsoft.com/fwlink/?linkid=2153358",
572576
ex);
573577
} catch (Exception e) {

0 commit comments

Comments
 (0)