I\'ve recently inherited some Selenium Webdriver code, written in Python 2.7. It is logging copious amounts of data to /tmp on Ubuntu - so much that it is becoming a problem
Here's what helped me to overcome the problem:
import logging from selenium.webdriver.remote.remote_connection import LOGGER LOGGER.setLevel(logging.WARNING)
Note: this code should be put before webdriver initialization.
Hope that helps.