Skip to content

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

dont trim logging handler names in cli

Nick Sweetingf948b298cc3d
diff --git a/browser_use/cli.py b/browser_use/cli.py
index be287ab9a..4fe420e47 100644
--- a/browser_use/cli.py
+++ b/browser_use/cli.py
@@ -447,8 +447,8 @@ class BrowserUseApp(App):
class BrowserUseFormatter(logging.Formatter):
def format(self, record):
- if isinstance(record.name, str) and record.name.startswith('browser_use.'):
- record.name = record.name.split('.')[-2]
+ # if isinstance(record.name, str) and record.name.startswith('browser_use.'):
+ # record.name = record.name.split('.')[-2]
return super().format(record)
# Set up the formatter based on log type