Skip to content

Commit ccadb4d

Browse files
committed
Add timestamps to basic test logging
1 parent bbca721 commit ccadb4d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/testutil.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ def __exit__(self, *args):
143143
self.end = time.time()
144144
self.interval = self.end - self.start
145145

146-
logging.basicConfig(level=logging.DEBUG)
146+
logging.basicConfig(level=logging.DEBUG,
147+
format="%(asctime)-15s %(name)-20s %(levelname)-10s %(message)s")
147148
logging.getLogger('test.fixtures').setLevel(logging.ERROR)
148149
logging.getLogger('test.service').setLevel(logging.ERROR)

0 commit comments

Comments
 (0)