Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
Fix logging formatter to handle non-string record names
David086f0d90e261
diff --git a/browser_use/logging_config.py b/browser_use/logging_config.pyindex 644400b69..043252bd7 100644--- a/browser_use/logging_config.py+++ b/browser_use/logging_config.py@@ -77,7 +77,7 @@ def setup_logging():class BrowserUseFormatter(logging.Formatter):def format(self, record):- if record.name.startswith('browser_use.'):+ if type(record.name) == str and record.name.startswith('browser_use.'):record.name = record.name.split('.')[-2]return super().format(record)