Skip to content

Commit eaa4437

Browse files
committed
Use logger instead of printStackTrace
1 parent 2dcff14 commit eaa4437

File tree

1 file changed

+1
-1
lines changed
  • agent/agent-tooling/src/main/java/com/microsoft/applicationinsights/agent/internal/init

1 file changed

+1
-1
lines changed

agent/agent-tooling/src/main/java/com/microsoft/applicationinsights/agent/internal/init/TempGetAttribute.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class TempGetAttribute {
5454
lockMethodHandle = lookup.unreflectGetter(lockField);
5555
attributesMapMethodHandle = lookup.unreflectGetter(attributesField);
5656
} catch (Exception e) {
57-
e.printStackTrace();
57+
logger.error(e.getMessage(), e);
5858
throw new IllegalStateException(e);
5959
}
6060
}

0 commit comments

Comments
 (0)