Skip to content

[MEDIUM] Landing Page: Remove production console.log in instrumentation.ts #425

@JeremyDev87

Description

@JeremyDev87

Problem

apps/landing-page/src/instrumentation.ts:4,11 contains console.log statements that execute in production, adding noise to server logs.

console.log('[Instrumentation] Server runtime registered');  // line 4
console.log('[Instrumentation] Edge runtime registered');     // line 11

Affected Files

  • apps/landing-page/src/instrumentation.ts (lines 4, 11)

Solution

  1. Remove the console.log calls
  2. Or add NODE_ENV guard:
if (process.env.NODE_ENV === 'development') {
  console.log('[Instrumentation] Server runtime registered');
}
  1. Replace with real instrumentation (OpenTelemetry/Sentry) when ready

Testing

  1. Production build does not output these log messages
  2. Existing tests pass

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions