Remove leftover app debug logging
This commit is contained in:
@@ -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";
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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.
|
||||
}
|
||||
|
||||
@@ -4,7 +4,9 @@ type ScrollInvestigationEvent =
|
||||
| "metricUpdate"
|
||||
| "itemRenderCall"
|
||||
| "wheelAttach"
|
||||
| "wheelDetach";
|
||||
| "wheelDetach"
|
||||
| "inputChange"
|
||||
| "keyPress";
|
||||
|
||||
export function installScrollJankInvestigation(): void {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user