Skip to content

Commit 073e4bb

Browse files
authored
Empty proc file is not an error
Empty proc file is not an error
1 parent ce0d09f commit 073e4bb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

dd-trace-ot/src/main/java/datadog/opentracing/ContainerInfo.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ public static boolean isRunningInContainer() {
7272
public static ContainerInfo fromDefaultProcFile() throws IOException, ParseException {
7373
final String content = new String(Files.readAllBytes(CGROUP_DEFAULT_PROCFILE));
7474
if (content.isEmpty()) {
75-
log.error("proc file is empty");
76-
throw new IOException();
75+
log.debug("Proc file is empty");
76+
return new ContainerInfo();
7777
}
7878
return parse(content);
7979
}

0 commit comments

Comments
 (0)