console.log("here"), print(f"DEBUG: {x}"), TODO: remove this. Developer breadcrumbs that made it to production.
Why it happens
Engineers add debug statements while developing. Most get removed before merge. Some don’t. Code review catches obvious ones, butlogger.debug() calls blend in. Over time, they accumulate.
Nobody intends to ship debug logs. But every codebase has them.
Example
- Before
- After
Recommended enforcement
Open PRs
Fix at the source. These are code mistakes, not infrastructure decisions.
How it works
Tero evaluates each log event in your Master Catalog. It looks at the content, the severity, the service context, and whether the log appears in any dashboards or alerts. A log withseverity_text: DEBUG might be intentional. But a log that says “got here lol”, has DEBUG severity, and never appears in any dashboard or alert? That’s clearly a debug statement that shipped by accident. Tero flags it and generates a policy you can approve or dismiss.