Skip to content

Commit

Permalink
Set up a logger during tests. (#100)
Browse files Browse the repository at this point in the history
* Set up a logger during tests.

This makes debugging Internal Server Errors during tests significantly easier.
  • Loading branch information
Ms2ger authored and jgraham committed Sep 6, 2016
1 parent 452309c commit 1e15a23
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/functional/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

logging.basicConfig()

wptserve.logger.set_logger(logging.getLogger())

here = os.path.split(__file__)[0]
doc_root = os.path.join(here, "docroot")

Expand Down

0 comments on commit 1e15a23

Please sign in to comment.