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:
parent
3232622255
commit
851bece9fc
2 changed files with 19 additions and 19 deletions
|
@ -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)));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue