Skip to content

fix: remove noisy implicit configuration warning from service locator#3837

Open
barjin wants to merge 1 commit into
v4from
3582-remove-implicit-configuration-warning
Open

fix: remove noisy implicit configuration warning from service locator#3837
barjin wants to merge 1 commit into
v4from
3582-remove-implicit-configuration-warning

Conversation

@barjin

@barjin barjin commented Jul 9, 2026

Copy link
Copy Markdown
Member

Fixes #3582.

ServiceLocator.getEventManager()/getStorageClient() logged a warning about implicit Configuration creation any time it happened before an explicit setConfiguration() call. That's the normal path for basic usage (nobody sets Configuration explicitly by default), so the warning showed up as the first log line in even a blank crawler template, which reads as if something in the setup is wrong when it isn't.

Removed the warning; the existing debug log already records that a default was created, and the genuine conflict case (implicit creation followed by a later setConfiguration() call) still throws a clear ServiceConflictError.

The warning fired on every default-configuration usage (e.g. a blank
CheerioCrawler), not just the rare case where it would actually matter,
confusing beginners into thinking something changed about the expected
setup. The debug log already records that a default was created; the
actual conflict case is still surfaced via ServiceConflictError if it
occurs.

Closes #3582
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.

2 participants