Remove leftover app debug logging

This commit is contained in:
Mohamed Boudra
2026-04-22 17:53:53 +07:00
parent fd05bf8bff
commit 9218f70df3
5 changed files with 8 additions and 17 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ import {
persistAttachmentFromFileUri,
} from "@/attachments/service";
import { resolveStatusControlMode } from "@/components/composer.status-controls";
import { markScrollInvestigationRender } from "@/utils/scroll-jank-investigation";
import { markScrollInvestigationRender } from "@/utils/scroll-jank";
import { useKeyboardShiftStyle } from "@/hooks/use-keyboard-shift-style";
import { useKeyboardActionHandler } from "@/hooks/use-keyboard-action-handler";
import type { KeyboardActionDefinition } from "@/keyboard/keyboard-action-dispatcher";
@@ -51,10 +51,7 @@ import { formatShortcut } from "@/utils/format-shortcut";
import { getShortcutOs } from "@/utils/shortcut-platform";
import type { MessageInputKeyboardActionKind } from "@/keyboard/actions";
import { isImeComposingKeyboardEvent } from "@/utils/keyboard-ime";
import {
markScrollInvestigationEvent,
markScrollInvestigationRender,
} from "@/utils/scroll-jank-investigation";
import { markScrollInvestigationEvent, markScrollInvestigationRender } from "@/utils/scroll-jank";
import { isWeb } from "@/constants/platform";
import { useComposerHeightMirror } from "./composer-height-mirror";
+1 -1
View File
@@ -71,7 +71,7 @@ import {
} from "@/utils/inline-path";
import { getMarkdownListMarker } from "@/utils/markdown-list";
import { openExternalUrl } from "@/utils/open-external-url";
import { markScrollInvestigationEvent } from "@/utils/scroll-jank-investigation";
import { markScrollInvestigationEvent } from "@/utils/scroll-jank";
import { splitMarkdownBlocks } from "@/utils/split-markdown-blocks";
import {
getAssistantImageMetadata,
+2 -10
View File
@@ -15,14 +15,6 @@ type AnalyticsEvent =
reason?: string | null;
};
export function trackAnalyticsEvent(event: AnalyticsEvent) {
try {
const payload = {
...event,
timestamp: new Date().toISOString(),
};
console.info("[Analytics]", payload);
} catch (error) {
console.error("[Analytics] Failed to emit event", error);
}
export function trackAnalyticsEvent(_event: AnalyticsEvent) {
// Placeholder until a real analytics sink is wired in.
}
+3 -1
View File
@@ -4,7 +4,9 @@ type ScrollInvestigationEvent =
| "metricUpdate"
| "itemRenderCall"
| "wheelAttach"
| "wheelDetach";
| "wheelDetach"
| "inputChange"
| "keyPress";
export function installScrollJankInvestigation(): void {}