Skip to content

Commit e2beda1

Browse files
authored
chore: Reduce log level in service_locator logs (#1489)
### Description - Reduce log level from `warning` to `debug` for logs related to implicit services in `service_locator` ### Issues - Closes: #1468
1 parent 3158448 commit e2beda1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/crawlee/_service_locator.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def __init__(
3838
def get_configuration(self) -> Configuration:
3939
"""Get the configuration."""
4040
if self._configuration is None:
41-
logger.warning('No configuration set, implicitly creating and using default Configuration.')
41+
logger.debug('No configuration set, implicitly creating and using default Configuration.')
4242
self._configuration = Configuration()
4343

4444
return self._configuration
@@ -63,9 +63,9 @@ def set_configuration(self, configuration: Configuration) -> None:
6363
def get_event_manager(self) -> EventManager:
6464
"""Get the event manager."""
6565
if self._event_manager is None:
66-
logger.warning('No event manager set, implicitly creating and using default LocalEventManager.')
66+
logger.debug('No event manager set, implicitly creating and using default LocalEventManager.')
6767
if self._configuration is None:
68-
logger.warning(
68+
logger.debug(
6969
'Implicit creation of event manager will implicitly set configuration as side effect. '
7070
'It is advised to explicitly first set the configuration instead.'
7171
)
@@ -93,7 +93,7 @@ def set_event_manager(self, event_manager: EventManager) -> None:
9393
def get_storage_client(self) -> StorageClient:
9494
"""Get the storage client."""
9595
if self._storage_client is None:
96-
logger.warning('No storage client set, implicitly creating and using default FileSystemStorageClient.')
96+
logger.debug('No storage client set, implicitly creating and using default FileSystemStorageClient.')
9797
if self._configuration is None:
9898
logger.warning(
9999
'Implicit creation of storage client will implicitly set configuration as side effect. '

0 commit comments

Comments
 (0)