Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-38395

Python global logger is polluted when importing certain resmokelib modules

    • Fully Compatible
    • v4.0
    • DAG 2018-12-31
    • 1

      It was discovered that the global logging in buildscripts/update_test_lifecycle.py gets overriden by buildscripts/mobile/adb_monitor.py because of the resmokelib imports.

      The file buildscripts/mobile/benchrun_embedded_setup_android.py also has similar issue.

      The logging setting should not be done in the global scope but in the main function:

      logging.basicConfig(format="%(asctime)s %(levelname)s %(message)s", level=logging.INFO)
      

            Assignee:
            jonathan.abrahams Jonathan Abrahams
            Reporter:
            jonathan.abrahams Jonathan Abrahams
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: