Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Selenium standalone server log level

Long story short: I'm trying to change log level to WARNING on selenium standalone server. I'm running 2.48.2 on CentOS 6.7.

I tried the server side, i.e. added -Dselenium.LOGGER.level=WARNING when starting the server - didn't work. Then I tried custom properties file -Djava.util.logging.config.file=/opt/selenium/my.properties with default level as WARNING - didn't work.

Then I tried doing that on the client side, I'm using WebDriver API for python. I tried both suggestions from this thread, didn't work either.

Is there a nice non-hacky way to change the level to Warning? Or at least make it omit the keystrokes? It's dumping passwords in my log files and I don't like that.

like image 580
gh0st Avatar asked Mar 13 '23 14:03

gh0st


1 Answers

-Dselenium.LOGGER.level=WARNING is correct. You need to add it in front of -jar.

like image 198
visit1985 Avatar answered Mar 19 '23 05:03

visit1985