Skip to content

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

Update browser_use/cli.py

Nick Sweeting0aaf13be550e
diff --git a/browser_use/cli.py b/browser_use/cli.py
index d3c54c94b..649c57577 100644
--- a/browser_use/cli.py
+++ b/browser_use/cli.py
@@ -447,7 +447,7 @@ class BrowserUseApp(App):
# Create and set up the custom handler
log_handler = RichLogHandler(rich_log)
- log_type = BROWSER_USE_LOGGING_LEVEL if BROWSER_USE_LOGGING_LEVEL != 'info' else 'result'
+ log_type = os.getenv('BROWSER_USE_LOGGING_LEVEL', 'result').lower()
class BrowserUseFormatter(logging.Formatter):
def format(self, record):