Search code examples
pythonseleniumloggingwebdriver-managerwebdrivermanager-python

How to suppress logging in WebDriverMangager for Python?


There is a similar question here, but that is for Java.

I wish to suppress the following:

INFO:WDM:====== WebDriver manager ======
INFO:WDM:Current google-chrome version is 88.0.4324
INFO:WDM:Get LATEST driver version for 88.0.4324
INFO:WDM:Driver [C:\Users\user.name\.wdm\drivers\chromedriver\win32\88.0.4324.96\chromedriver.exe] found in cache

Is there a Python solution?


Solution

  • Python maintains concept to logging similar to Java. So you can alter logger's default settings with ini file or hardcoding. You may choose new log error level ERROR or WARNING - messages with INFO and below will not be stored then