Skip to content

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

Change cookie logging to debug

Magnus Müller2430870b9ae6
diff --git a/browser_use/browser/context.py b/browser_use/browser/context.py
index 751090293..cfcd407dc 100644
--- a/browser_use/browser/context.py
+++ b/browser_use/browser/context.py
@@ -1085,7 +1085,7 @@ class BrowserContext:
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)