Should we try to use logging instead of print for that though?

> On 21 nov. 2013, at 23:55, Maxime Verger-Del Bove <notifications@github.com> wrote:
> 
> In django_coverage/coverage_runner.py:
> 
> >              print >>sys.stdout
> >              print >>sys.stdout, "HTML reports were output to '%s'" %outdir
> >  
> > -        return results
> > +        coverage_fails = coverage_value < settings.COVERAGE_FAIL_UNDER
> > +        if coverage_fails:
> > +            msg = "Test coverage failed: %0.2f%% is less than %0.2f%% !" % (coverage_value, settings.COVERAGE_FAIL_UNDER)
> > +            print >>sys.stdout, msg
> In fact, I think that COVERAGE_USE_STDOUT setting is just for the reporting output. In the code, we still output at other places (for instance when HTML as been generated, we output a message saying that "HTML report has been done blah blah blah"
> 
> Changing the name of the setting would be the solution, but I didn't want to be too intrusive in the base code
> 
> —
> Reply to this email directly or view it on GitHub.