Skip to content

Commit a3c39e6

Browse files
committed
feat(env): Migrate logging to environment component
1 parent 68ba918 commit a3c39e6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dd-java-agent/agent-logging/src/main/java/datadog/trace/logging/LogReporter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import static java.nio.file.Files.readAllBytes;
44

5+
import datadog.environment.SystemProperties;
56
import datadog.trace.api.Config;
67
import datadog.trace.api.flare.TracerFlare;
78
import java.io.File;
@@ -45,7 +46,7 @@ public void prepareForFlare() {
4546
String captureFilename =
4647
"tracer" + "-" + Config.get().getRuntimeId() + "-" + endMillis + ".log";
4748
try {
48-
Path tempPath = Paths.get(System.getProperty("java.io.tmpdir"), captureFilename);
49+
Path tempPath = Paths.get(SystemProperties.get("java.io.tmpdir"), captureFilename);
4950
Path parentPath = tempPath.getParent();
5051
if (parentPath != null && !Files.isDirectory(parentPath)) {
5152
Files.createDirectories(parentPath);

0 commit comments

Comments
 (0)