Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

Change cookie log level to debug

magmuellera25711848bbc
diff --git a/browser_use/browser/service.py b/browser_use/browser/service.py
index 4440e8dd6..039f538cd 100644
--- a/browser_use/browser/service.py
+++ b/browser_use/browser/service.py
@@ -811,7 +811,7 @@ class Browser:
if self.session and self.session.context and self.config.cookies_file:
try:
cookies = await self.session.context.cookies()
- logger.info(f'Saving {len(cookies)} cookies to {self.config.cookies_file}')
+ logger.debug(f'Saving {len(cookies)} cookies to {self.config.cookies_file}')
# Check if the path is a directory and create it if necessary
dirname = os.path.dirname(self.config.cookies_file)