title: Python3 Selenium ChromeDriver Disable Extensions Logging Only Pyinstaller Windows 10
body: <p><a href="https://i.stack.imgur.com/CzOzk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CzOzk.png" alt="enter image description here"></a></p>
  
  <p>I am using Windows 10, Python 3.5.4, Windows Chrome Driver 2.33 and Selnium 3.6.0 and Pyinstaller 3.3. </p>
  
  <p>My Chrome Driver extensions produce logging to the console which looks to be cause caused by the extensions in Chrome. </p>
  
  <p><em>(I have tried with chrome_options.add_argument("--disable-extensions") and the logging was not evident)</em></p>
  
  <p>I want to <strong>keep</strong> using the Chrome Extensions however I just want to <strong><em>disable this logging.</em></strong></p>
  
  <p>Until I can disable this logging I cannot create a pyinstaller.exe without a console.</p>
  
  <p>Any suggestions on how to disable selenium chrome driver extension logging only? Or a work around in Python to play nice with pyinstaller to create the exe without a console? </p>
  
  <p>Thanks for your time.</p>
  
  <pre><code># Python Script Parameters for chrome driver.
  
  # example.py
  
  chrome_options = webdriver.ChromeOptions()
  chrome_options.add_argument("--disable-infobars")
  chrome_options.add_argument("--disable-logging")
  chrome_options.add_argument("--disable-notifications")
  chrome_options.add_argument("--disable-default-apps")
  chrome_options.add_argument('--user-data-dir=C:\\Users\\testuser\\AppData\\Local\\Google\\Chrome\\User Data')
  
  driver = webdriver.Chrome(r"D:\Selenium\chromedriver_win32\chromedriver.exe", chrome_options=chrome_options)
  </code></pre>