Skip to content

Commit

Permalink
Fix logging levels in http.js and webdriver.js (#13098)
Browse files Browse the repository at this point in the history
Signed-off-by: Marvin A. Ruder <signed@mruder.dev>
Co-authored-by: Diego Molina <diemol@users.noreply.github.com>
  • Loading branch information
marvinruder and diemol committed Nov 6, 2023
1 parent 945e4f4 commit 76ace92
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Expand Up @@ -69,7 +69,7 @@ class CDPConnection {
} catch (err) {
logging
.getLogger(logging.Type.BROWSER)
.error(`Failed parse message: ${err.message}`)
.severe(`Failed parse message: ${err.message}`)
}
}

Expand Down
2 changes: 1 addition & 1 deletion javascript/node/selenium-webdriver/lib/http.js
Expand Up @@ -63,7 +63,7 @@ function requireAtom(module, bazelTarget) {
log_.log(`../../../bazel-bin/${file}`)
return require(path.resolve(`../../../bazel-bin/${file}`))
} catch (ex2) {
log_.error(ex2)
log_.severe(ex2)
throw Error(
`Failed to import atoms module ${module}. If running in dev mode, you` +
` need to run \`bazel build ${bazelTarget}\` from the project` +
Expand Down
2 changes: 1 addition & 1 deletion javascript/node/selenium-webdriver/lib/webdriver.js
Expand Up @@ -2799,7 +2799,7 @@ class WebElement {
keys.join('')
)
} catch (ex) {
this.log_.error(
this.log_.severe(
'Error trying parse string as a file with file detector; sending keys instead' +
ex
)
Expand Down

0 comments on commit 76ace92

Please sign in to comment.