Closed mdsrosa closed 7 years ago
This should be solvable by setting the log level for the logger. Something like this before your tests run
import logging
flask_fixtures_logger = logging.getLogger(__name__)
log.setLevel('WARNING')
Or you can change the handlers on the log object.
@timmartin19 You're right. This fixed:
from flask_fixtures import log
log.setLevel('WARNING')
...
Thanks!
I'm closing this PR.
I started using
Flask-Fixtures
today and I'm loving it! But the only thing I would change right now is the log output to stdout.I prefer this output:
Over this one:
So this PR sets the
filename
parameter in thelogging.basicConfig()
call so log messages won't mess with the output fromunittest
orpy.test
.If there is another way to do this, please, let me know! 😉