Skip to content

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

Silence third party loggers for anthropic and gifs

magmuellerb87d0588b279
diff --git a/browser_use/logging_config.py b/browser_use/logging_config.py
index 2e77e6bef..9af625241 100644
--- a/browser_use/logging_config.py
+++ b/browser_use/logging_config.py
@@ -1,6 +1,7 @@
import logging
import os
import sys
+
from dotenv import load_dotenv
load_dotenv()
@@ -121,6 +122,8 @@ def setup_logging():
'openai',
'httpcore',
'charset_normalizer',
+ 'anthropic._base_client',
+ 'PIL.PngImagePlugin',
]:
third_party = logging.getLogger(logger)
third_party.setLevel(logging.ERROR)