Skip to content

Commit

Permalink
remove debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
rhelmer committed Dec 20, 2024
1 parent 43b1d9c commit 4a7bd55
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/app/hooks/useGlean.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ export const useGlean = () => {
const mod = (await import(
`../../telemetry/generated/${eventModule}`
)) as Record<keyof GleanMetricMap[EventModule], EventMetricType>;
console.debug("Glean useCallback");
// Instead of the specific type definitions we generated in the npm script
// `build-glean-types`, Glean takes a non-specific "ExtraArgs" type as
// parameter to `record`.
Expand All @@ -43,7 +42,6 @@ export const useGlean = () => {
// Record the `nimbus_*` keys on all events.
// `nimbus_*` is set on every metric, but it's too much work for TypeScript
// to infer that — hence the type assertion.
console.debug({ event, experimentData });
if (experimentData) {
(data as GleanMetricMap["button"]["click"]).nimbus_user_id =
experimentData["Enrollments"]["nimbus_user_id"];
Expand Down
4 changes: 0 additions & 4 deletions src/contextProviders/experiments.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ export const ExperimentsProvider = ({
children,
experimentData,
}: ExperimentsProviderProps) => {
console.debug("ExperimentsProvider:", {
children,
experimentData: JSON.stringify(experimentData),
});
return (
<ExperimentsContext.Provider value={experimentData}>
{children}
Expand Down

0 comments on commit 4a7bd55

Please sign in to comment.