1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 22:07:36 +00:00

Browser: Hide WebDriver debug messages behind WEBDRIVER_DEBUG

This commit is contained in:
Sam Atkins 2022-10-20 14:02:42 +01:00 committed by Linus Groh
parent 3232622255
commit 851bece9fc
2 changed files with 19 additions and 19 deletions

View file

@ -26,9 +26,9 @@ class WebDriverConnection final
public:
static ErrorOr<NonnullRefPtr<WebDriverConnection>> connect_to_webdriver(NonnullRefPtr<BrowserWindow> browser_window, String path)
{
dbgln("Trying to connect to {}", path);
dbgln_if(WEBDRIVER_DEBUG, "Trying to connect to {}", path);
auto result = TRY(Core::Stream::LocalSocket::connect(path));
dbgln("Connected to WebDriver");
dbgln_if(WEBDRIVER_DEBUG, "Connected to WebDriver");
return TRY(adopt_nonnull_ref_or_enomem(new (nothrow) WebDriverConnection(move(result), browser_window)));
}