title: defer log.SetOutput(os.Stdout) after log.SetOutput(ioutil.Discard)
body: <p>In <code>go-nsq</code> library (<a href="https://github.com/bitly/go-nsq/blob/master/writer_test.go#L38" rel="nofollow">https://github.com/bitly/go-nsq/blob/master/writer_test.go#L38</a>), I found the following code:</p>
  
  <pre><code>log.SetOutput(ioutil.Discard)
  defer log.SetOutput(os.Stdout)
  </code></pre>
  
  <p>Why does the author defer logging to stdout after discard the log?</p>