Skip to content

Commit 0ad7487

Browse files
Log event sends as Trace (#479)
1 parent a5fa0ce commit 0ad7487

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Telemetry/Telemetry.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public void TrackEvent(TelemetryEventName eventName, IDictionary<TelemetryProper
9696
{
9797
return;
9898
}
99-
this._logger.LogInformation($"Sending event {eventName}");
99+
this._logger.LogTrace($"Sending event {eventName}");
100100

101101
//continue task in existing parallel thread
102102
this._trackEventTask = this._trackEventTask.ContinueWith(
@@ -119,7 +119,7 @@ public void TrackException(TelemetryErrorName errorName, Exception exception, ID
119119
{
120120
return;
121121
}
122-
this._logger.LogInformation($"Sending exception event: {exception.Message}");
122+
this._logger.LogTrace($"Sending exception event: {exception.Message}");
123123
properties = properties != null ? new Dictionary<TelemetryPropertyName, string>(properties) : new Dictionary<TelemetryPropertyName, string>();
124124
properties[TelemetryPropertyName.ErrorName] = errorName.ToString();
125125
properties[TelemetryPropertyName.ErrorCode] = ExtractErrorCode(exception);

0 commit comments

Comments
 (0)