You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
InternalAgentLogger.INSTANCE.logAlways(InternalAgentLogger.LoggingLevel.ERROR, "Agent is NOT activated: failed to load to bootstrap class loader: %s", throwable.toString()); throwable.printStackTrace();
67
+
InternalAgentLogger.INSTANCE.error("Agent is NOT activated: failed to load to bootstrap class loader: %s",
InternalAgentLogger.INSTANCE.logAlways(InternalAgentLogger.LoggingLevel.ERROR, "Error while trying to fetch Jar Location, Exception: %s", throwable.toString());
166
+
InternalAgentLogger.INSTANCE.error("Error while trying to fetch Jar Location, Exception: %s", ExceptionUtils.getStackTrace(throwable));
InternalAgentLogger.INSTANCE.logAlways(InternalAgentLogger.LoggingLevel.INFO, "Agent is up");
55
56
} catch (ThreadDeathtd) {
56
57
throwtd;
57
58
} catch (Throwablethrowable) {
58
59
try {
59
-
throwable.printStackTrace();
60
-
InternalAgentLogger.INSTANCE.logAlways(InternalAgentLogger.LoggingLevel.INFO, "Agent is NOT activated: failed to initialize CodeInjector: '%s'", throwable.toString());
60
+
InternalAgentLogger.INSTANCE.error("Agent is NOT activated: failed to initialize CodeInjector: '%s'",
61
+
ExceptionUtils.getStackTrace(throwable));
61
62
} catch (ThreadDeathtd) {
62
63
throwtd;
63
64
} catch (Throwablet2) {
@@ -68,11 +69,12 @@ public CodeInjector(AgentConfiguration agentConfiguration) {
68
69
69
70
/**
70
71
* Main method that transforms classes
71
-
* @param loader The class loader that loaded this class
72
-
* @param className The class name
72
+
*
73
+
* @param loader The class loader that loaded this class
74
+
* @param className The class name
73
75
* @param classBeingRedefined The class that is being redefined
74
-
* @param protectionDomain The protection domain
75
-
* @param originalBuffer The class that was loaded before transforming it
76
+
* @param protectionDomain The protection domain
77
+
* @param originalBuffer The class that was loaded before transforming it
76
78
* @return A byte array that contains the transformed original class or the original one if nothing was done.
77
79
* @throws IllegalClassFormatException Theoretical, since the following implementation won't throw.
78
80
*/
@@ -91,8 +93,8 @@ public byte[] transform(
91
93
throwtd;
92
94
} catch (Throwablethrowable) {
93
95
try {
94
-
throwable.printStackTrace();
95
-
InternalAgentLogger.INSTANCE.logAlways(InternalAgentLogger.LoggingLevel.ERROR, "Failed to instrument '%s', exception: '%s': ", className, throwable.toString());
96
+
InternalAgentLogger.INSTANCE.error("Failed to instrument '%s', " +
Copy file name to clipboardExpand all lines: agent/src/main/java/com/microsoft/applicationinsights/agent/internal/agent/exceptions/RuntimeExceptionProvider.java
Copy file name to clipboardExpand all lines: agent/src/main/java/com/microsoft/applicationinsights/agent/internal/agent/redis/JedisClassDataProvider.java
Copy file name to clipboardExpand all lines: agent/src/main/java/com/microsoft/applicationinsights/agent/internal/config/ConfigRuntimeExceptionDataBuilder.java
InternalAgentLogger.INSTANCE.logAlways(InternalAgentLogger.LoggingLevel.ERROR, "Failed to parse attribute %s with value %s, will send full stack", MAX_STACK_SIZE, maxStackSizeAsString);
107
+
InternalAgentLogger.INSTANCE.error("Failed to parse attribute %s with value %s, will send full stack" +
0 commit comments