Loggers in resmoke.py are sometimes used when no handlers have been set up

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • Hide
      python buildscripts/resmoke.py always_fails.js --log=buildlogger
      
      always_fails.js
      throw new Error("bad");
      
      Output
      [executor:js_test:job0] 2016-10-03T17:31:58.053-0400 always_fails.js ran in 0.07 seconds.
      No handlers could be found for logger "js_test"
      [executor:js_test:job0] 2016-10-03T17:31:58.053-0400 Received a StopExecution exception: JSTest always_fails.js failed.
      [executor:js_test] 2016-10-03T17:31:58.103-0400 Summary: 1 test(s) ran in 0.12 seconds (0 succeeded, 0 were skipped, 1 failed, 0 errored)
      

      When --log=console (the default value) is used and --continueOnFailure wasn't specified, then we log the following message.

      [js_test] 2016-10-03T17:30:21.859-0400 JSTest always_fails.js failed, so stopping...
      
      Show
      python buildscripts/resmoke.py always_fails.js --log=buildlogger always_fails.js throw new Error( "bad" ); Output [executor:js_test:job0] 2016-10-03T17:31:58.053-0400 always_fails.js ran in 0.07 seconds. No handlers could be found for logger "js_test" [executor:js_test:job0] 2016-10-03T17:31:58.053-0400 Received a StopExecution exception: JSTest always_fails.js failed. [executor:js_test] 2016-10-03T17:31:58.103-0400 Summary: 1 test(s) ran in 0.12 seconds (0 succeeded, 0 were skipped, 1 failed, 0 errored) When --log=console (the default value) is used and --continueOnFailure wasn't specified, then we log the following message . [js_test] 2016-10-03T17:30:21.859-0400 JSTest always_fails.js failed, so stopping...
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We should use the logger of the Job instance instead.

            Assignee:
            Max Hirschhorn
            Reporter:
            Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: