Commit Graph

53 Commits

Author SHA1 Message Date
ShawnPana
859cb97063 simplify daemon architecture: single session, socket-as-liveness, no PID/lock files
Replace the multi-session server (server.py, SessionRegistry, portalocker locking,
PID files, orphan detection) with a minimal daemon (daemon.py) that holds one
BrowserSession in memory. Socket file existence = alive. Auto-exits when browser
dies via CDP watchdog.

-2277 lines, +142 lines across 20 files.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-03 19:05:44 -08:00
Laith Weinberger
4d05218d7d fix: redirect logging to stderr so MCP stdio doesn't break (#2748) 2026-02-08 16:29:05 -05:00
阿正
c544cd4766 fix codec error while writing log 2025-08-28 13:59:32 +08:00
Magnus Müller
dbfaffa8d1 Agent service update tools with backward compatible 2025-08-26 11:24:06 -07:00
Magnus Müller
2e650019c5 Rename controller file to tools 2025-08-26 11:08:08 -07:00
Magnus Müller
146b7ff423 safe info and debug logs to files 2025-08-24 16:47:02 -07:00
Nick Sweeting
5668ab3f9b move cross-origin iframe option to instance attr instead of hardcoded global 2025-08-22 16:05:17 -07:00
Nick Sweeting
720635f8f5 tweak logging to use target id everywhere consistently instead of python id of page obj 2025-08-22 16:04:20 -07:00
Nick Sweeting
4871add4a1 Merge branch 'main' into cursor/set-default-cdp-logging-level-92e8 2025-08-21 16:44:09 -07:00
Magnus Müller
7d53f108c7 Enhance logging: include 'google_genai' in logging configuration and improve attachment logging format. Log task duration on completion. 2025-08-20 21:07:26 -07:00
Magnus Müller
04c346ab7c Update browser_use/logging_config.py
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-08-19 01:28:10 -07:00
Magnus Müller
13dce77c98 Update info logger to debug and clean up logs 2025-08-19 00:02:42 -07:00
Magnus Müller
5530e2485e Simplify record name 2025-08-18 23:37:03 -07:00
Nick Sweeting
76512fbfdd fix Failed to build DOM tree: cannot reuse already awaited coroutine 2025-08-16 17:58:45 -07:00
Cursor Agent
02a1f45255 Add configurable CDP logging level with separate configuration
Co-authored-by: mamagnus00 <mamagnus00@gmail.com>
2025-08-16 20:05:28 +00:00
Cursor Agent
2f3a19bf7e Enhance logging configuration with CDP logging level and environment settings
Co-authored-by: mamagnus00 <mamagnus00@gmail.com>
2025-08-16 19:57:48 +00:00
Nick Sweeting
a1f1330aa6 linter fixes 2025-08-14 14:32:32 -07:00
Nick Sweeting
b3546b0cf5 fix iframe scroll detection and viewport element inclusion tests after scroll 2025-08-14 05:02:57 -07:00
Nick Sweeting
7a0889cf20 formatting 2025-08-12 04:14:53 -07:00
Nick Sweeting
d1e569eb31 raise BrowserError exceptions instead of returning success=False 2025-08-12 04:14:53 -07:00
Nick Sweeting
66b21d634d clean up logging setup and tests 2025-08-09 03:41:34 -07:00
Nick Sweeting
645742fb17 fix cdp logging 2025-08-09 03:36:36 -07:00
Nick Sweeting
5c551272cb fix screenshots 2025-08-08 05:14:01 -07:00
Nick Sweeting
48086d0cdd use retry decorator from bubus 2025-07-08 03:16:22 -07:00
Nick Sweeting
9e9cce40f6 simplify error logging and fix timeouts 2025-07-07 21:29:03 -07:00
mertunsall
5039c5aec6 remove memory 2025-06-27 13:26:34 +02:00
Gregor Žunič
7a10ae0c96 Squashed commit langchain to native 2025-06-24 12:26:55 +02:00
Nick Sweeting
3cf9f3410c fix config issues 2025-06-21 04:03:58 -07:00
Nick Sweeting
49e9fd4ff2 move env var config to utils file 2025-06-21 03:14:46 -07:00
mertunsall
0c34c399db Merge branch 'main' into mert/new_everything 2025-06-17 11:19:06 +02:00
Nick Sweeting
39ffb0866f dont squash browser_use logger names 2025-06-10 02:10:13 -07:00
Magnus Müller
de163e4a75 Add Groq support in logging configuration and introduce llama4-groq example script 2025-06-02 14:19:01 +02:00
Nick Sweeting
2195ce6e1b wrap windows async adjustment in except 2025-05-28 02:03:28 -07:00
Nick Sweeting
08726575ac simplify close messages 2025-05-23 22:05:19 -07:00
Nick Sweeting
f6ca4e13a3 massively improve logging experience and add loading animation on browser startup 2025-05-23 00:48:52 -07:00
Nick Sweeting
6b8360c475 better logging 2025-05-22 23:17:21 -07:00
Magnus Müller
c40efbc890 Refactor logging configuration and adjust log levels in memory service
- Updated `logging_config.py` to improve clarity in third-party logger management by renaming the list and adding new loggers.
- Changed log level from `info` to `debug` in `service.py` for better granularity in message processing feedback.
2025-05-21 13:45:53 +02:00
Nick Sweeting
c2d29fc5af hide startup log msg 2025-05-03 17:28:57 +08:00
Nick Sweeting
2be4ba4f70 more pyupgrade changes 2025-05-02 20:50:21 +08:00
Nick Sweeting
89d48ad50f manually fix remaining broken lines 2025-03-28 18:13:47 -07:00
David
086f0d90e2 Fix logging formatter to handle non-string record names 2025-01-29 12:56:05 -05:00
magmueller
bc029639b1 Deepseek r1 working draft 2025-01-25 18:19:12 -08:00
magmueller
b87d0588b2 Silence third party loggers for anthropic and gifs 2025-01-19 12:42:59 -08:00
Jan Rupnik
e9372270d3 Fix so that logging_config.py reads .env file (#162)
Without it the variable BROWSER_USE_LOGGING_LEVEL in .env is ignored
2025-01-10 07:44:38 -08:00
magmueller
07bba9ae32 Example apply to jobs 2024-11-25 09:45:02 +01:00
magmueller
23d997daa6 Fix logger 2024-11-25 07:46:31 +01:00
Gregor Žunič
9255d37b0d default logging level is info 2024-11-22 21:46:56 +01:00
Gregor Žunič
6e9d6c07a9 formatting logging 2024-11-22 21:39:43 +01:00
Gregor Žunič
b48f94e394 Merge pull request #40 from BedroomDev:main
ResultOnlyMode: Added logLevel.RESULT & env to filter the output
2024-11-22 17:20:44 +01:00
Gregor Žunič
0019105a49 fixed merge errors 2024-11-22 15:08:58 +01:00