Skip to content

Feature/889 skip system debug in managed package#992

Open
JMercie wants to merge 2 commits into
jongpie:mainfrom
JMercie:feature/889-skip-system-debug-in-managed-package
Open

Feature/889 skip system debug in managed package#992
JMercie wants to merge 2 commits into
jongpie:mainfrom
JMercie:feature/889-skip-system-debug-in-managed-package

Conversation

@JMercie
Copy link
Copy Markdown
Contributor

@JMercie JMercie commented May 28, 2026

Added guard clause to prevent System.debug() being invoked on LogEntryEventBuilder when running as a managed package, taking advantage of already existing prop NAMESPACE_PREFIX.

image

This close #889


Disclosure: This PR contains AI generated code.

JMercie and others added 2 commits May 28, 2026 13:54
…ged package

Managed package subscribers cannot see namespaced debug logs, so skip the
per-entry Apex debug path to avoid unnecessary overhead (issue jongpie#889).

Co-authored-by: Cursor <[email protected]>
@JMercie JMercie requested a review from jongpie as a code owner May 28, 2026 18:12
@JMercie
Copy link
Copy Markdown
Contributor Author

JMercie commented May 28, 2026

I'm wondering if we have to add a way to like globably disabled the system.debug for other classes like Logger.cls @jongpie.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The managed package should never attempt to call System.debug()

1 participant