Skip to content

Commit c829952

Browse files
authored
Stop logging fluter-error events (#6766)
1 parent 765b039 commit c829952

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

flutter-idea/src/io/flutter/logging/FlutterConsoleLogManager.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -169,17 +169,6 @@ public void handleFlutterErrorEvent(@NotNull Event event) {
169169
final JsonObject jsonObject = extensionData.getJson().getAsJsonObject();
170170
final DiagnosticsNode diagnosticsNode = new DiagnosticsNode(jsonObject, objectGroup, app, false, null);
171171

172-
// Send analytics for the diagnosticsNode.
173-
if (isFirstErrorForFrame()) {
174-
final String errorId = FlutterErrorHelper.getAnalyticsId(diagnosticsNode);
175-
if (errorId != null) {
176-
FlutterInitializer.getAnalytics().sendEvent(
177-
"flutter-error", errorId,
178-
// Note: this can be null from tests.
179-
app.getProject() == null ? null : FlutterSdk.getFlutterSdk(app.getProject()));
180-
}
181-
}
182-
183172
if (FlutterSettings.getInstance().isShowStructuredErrors()) {
184173
queueLength.incrementAndGet();
185174

0 commit comments

Comments
 (0)