Python global logger is polluted when importing certain resmokelib modules

XMLWordPrintableJSON

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

      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 (Inactive)
              Reporter:
              Jonathan Abrahams (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: