diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2017-10-23 16:03:55 -0700 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2018-09-17 14:38:35 -0700 |
commit | 10900a91cf91b10859f6060a1897a697104e6877 (patch) | |
tree | bc308e6454c93abb463633dba61d40405834d018 /tests | |
parent | 4578354019f17fcea05353d7b6d0dcf82a40c9b0 (diff) |
Tweak test-level logging format to include timestamps
Diffstat (limited to 'tests')
-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. |