diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2017-10-23 16:03:55 -0700 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2017-10-23 16:03:55 -0700 |
commit | 8980f9381bd3a7661d3602de0581a29f57a6fe01 (patch) | |
tree | fee350b2ca4c4af3ccb4d1b7d140964f6a0d7327 /tests/conftest.py | |
parent | 25d56a954aefefb5028977fbff2c87963df9b4b1 (diff) |
Tweak test-level logging format to include timestamps
Diffstat (limited to 'tests/conftest.py')
-rw-r--r-- | tests/conftest.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/conftest.py b/tests/conftest.py index c58798ca..7d85fa99 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,3 +1,4 @@ +import logging import os import threading @@ -13,6 +14,16 @@ from .util import _support # 'nicer'. +# Perform logging by default; pytest will capture and thus hide it normally, +# presenting it on error/failure. +# Also make sure to set up timestamping for more sanity when debugging. +logging.basicConfig( + level=logging.DEBUG, + format="[%(relativeCreated)s]\t%(levelname)s:%(name)s:%(message)s", + datefmt="%H:%M:%S", +) + + def make_sftp_folder(client): """ Create some non-existing, new folder on the given SFTP connection. |