Skip to content

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

Fix so that logging_config.py reads .env file (#162)

Jan Rupnike9372270d3c5
diff --git a/browser_use/logging_config.py b/browser_use/logging_config.py
index 73c41ff5a..2e77e6bef 100644
--- a/browser_use/logging_config.py
+++ b/browser_use/logging_config.py
@@ -1,6 +1,9 @@
import logging
import os
import sys
+from dotenv import load_dotenv
+
+load_dotenv()
def addLoggingLevel(levelName, levelNum, methodName=None):