Skip to content

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

Remove ๐Ÿ“ from logs

Magnus Mรผller9915ea41a9d1
diff --git a/browser_use/agent/service.py b/browser_use/agent/service.py
index 3dc3329f0..473361605 100644
--- a/browser_use/agent/service.py
+++ b/browser_use/agent/service.py
@@ -1160,7 +1160,7 @@ class Agent(Generic[Context, AgentStructuredOutput]):
unique_urls = list(set(found_urls))
# If multiple URLs found, skip directly_open_urling
if len(unique_urls) > 1:
- self.logger.debug(f'๐Ÿ“ Multiple URLs found ({len(found_urls)}), skipping directly_open_url to avoid ambiguity')
+ self.logger.debug(f'Multiple URLs found ({len(found_urls)}), skipping directly_open_url to avoid ambiguity')
return None
# If exactly one URL found, return it
diff --git a/browser_use/browser/watchdogs/default_action_watchdog.py b/browser_use/browser/watchdogs/default_action_watchdog.py
index 476b629a4..3297cbc52 100644
--- a/browser_use/browser/watchdogs/default_action_watchdog.py
+++ b/browser_use/browser/watchdogs/default_action_watchdog.py
@@ -708,7 +708,7 @@ class DefaultActionWatchdog(BaseWatchdog):
center_x = bounds['x'] + bounds['width'] / 2
center_y = bounds['y'] + bounds['height'] / 2
input_coordinates = {'input_x': center_x, 'input_y': center_y}
- self.logger.debug(f'๐Ÿ“ Input coordinates: x={center_x:.1f}, y={center_y:.1f}')
+ self.logger.debug(f'Input coordinates: x={center_x:.1f}, y={center_y:.1f}')
# Provide helpful warnings for common issues
if not element_info.get('visible', False):
diff --git a/browser_use/browser/watchdogs/dom_watchdog.py b/browser_use/browser/watchdogs/dom_watchdog.py
index 372d1d414..077ae36d4 100644
--- a/browser_use/browser/watchdogs/dom_watchdog.py
+++ b/browser_use/browser/watchdogs/dom_watchdog.py
@@ -164,10 +164,10 @@ class DOMWatchdog(BaseWatchdog):
self.logger.debug(f'๐Ÿ” DOMWatchdog.on_BrowserStateRequestEvent: Got page URL: {page_url}')
if self.browser_session.agent_focus:
self.logger.debug(
- f'๐Ÿ“ Current page URL: {page_url}, target_id: {self.browser_session.agent_focus.target_id}, session_id: {self.browser_session.agent_focus.session_id}'
+ f'Current page URL: {page_url}, target_id: {self.browser_session.agent_focus.target_id}, session_id: {self.browser_session.agent_focus.session_id}'
)
else:
- self.logger.debug(f'๐Ÿ“ Current page URL: {page_url}, no cdp_session attached')
+ self.logger.debug(f'Current page URL: {page_url}, no cdp_session attached')
# check if we should skip DOM tree build for pointless pages
not_a_meaningful_website = page_url.lower().split(':', 1)[0] not in ('http', 'https')