Skip to content

Commit 2a24671

Browse files
authored
Reduce logging (#3564)
1 parent e686cb7 commit 2a24671

File tree

1 file changed

+2
-4
lines changed
  • agent/agent-tooling/src/main/java/com/microsoft/applicationinsights/agent/internal/telemetry

1 file changed

+2
-4
lines changed

agent/agent-tooling/src/main/java/com/microsoft/applicationinsights/agent/internal/telemetry/TelemetryClient.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,17 +237,15 @@ private BatchItemProcessor initBatchItemProcessor(
237237
if (tempDir == null) {
238238
telemetryPipelineListener =
239239
new DiagnosticTelemetryPipelineListener(
240-
"Sending telemetry to the ingestion service", false, " (telemetry will be lost)");
240+
"Sending telemetry to the ingestion service", true, " (telemetry will be lost)");
241241
} else {
242242
telemetryPipelineListener =
243243
TelemetryPipelineListener.composite(
244244
// suppress warnings on retryable failures, in order to reduce sporadic/annoying
245245
// warnings when storing to disk and retrying shortly afterwards anyways
246246
// will log if that retry from disk fails
247247
new DiagnosticTelemetryPipelineListener(
248-
"Sending telemetry to the ingestion service",
249-
true,
250-
" (telemetry will be stored to disk and retried)"),
248+
"Sending telemetry to the ingestion service", false, ""),
251249
new LocalStorageTelemetryPipelineListener(
252250
diskPersistenceMaxSizeMb,
253251
TempDirs.getSubDir(tempDir, TELEMETRY_FOLDER_NAME),

0 commit comments

Comments
 (0)