Skip to content

chore: remove unused replaceLog/silence from log.ts - #392

Open
ayushi-wq wants to merge 1 commit into
RocketChat:mobilefrom
ayushi-wq:chore/remove-unused-replaceLog-silence
Open

chore: remove unused replaceLog/silence from log.ts#392
ayushi-wq wants to merge 1 commit into
RocketChat:mobilefrom
ayushi-wq:chore/remove-unused-replaceLog-silence

Conversation

@ayushi-wq

Copy link
Copy Markdown

Removes the unused replaceLog and silence functions from lib/log.ts. Neither has any caller anywhere in the SDK source — the SDK already uses per-instance logger injection (via Api and Driver constructor options) as its actual mechanism for controlling logging, so the global mutable logger swap was dead code. logger itself is left in place, since it's still used internally by InternalLog.

Verified no callers of replaceLog/silence anywhere in lib/ (only their own definitions), and confirmed index.ts does not export them. Typecheck, lint, and full test suite (302/302) all pass with no new issues.

Closes #380

@CLAassistant

CLAassistant commented Aug 26, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

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.

refactor: delete the unused replaceLog and silence exports from lib/log.ts

2 participants