diff options
author | John Newbery <john@johnnewbery.com> | 2017-03-21 10:05:59 -0400 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2017-03-21 17:30:13 -0400 |
commit | 8317a4516102d95c7e45c3b61e33faa84346eb61 (patch) | |
tree | d18401440f68ec32d6a771f4bb437033fd64e3a3 | |
parent | 61d75f587de504310c07216c4755cd206e31dc09 (diff) |
Python functional tests should log in UTC
bitcoind logs use UTC. Python functional tests should also log in UTC.
-rwxr-xr-x | test/functional/test_framework/test_framework.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/functional/test_framework/test_framework.py b/test/functional/test_framework/test_framework.py index d7072fa78d..fd2e803541 100755 --- a/test/functional/test_framework/test_framework.py +++ b/test/functional/test_framework/test_framework.py @@ -10,6 +10,7 @@ import os import sys import shutil import tempfile +import time import traceback from .util import ( @@ -202,6 +203,7 @@ class BitcoinTestFramework(object): ch.setLevel(ll) # Format logs the same as bitcoind's debug.log with microprecision (so log files can be concatenated and sorted) formatter = logging.Formatter(fmt = '%(asctime)s.%(msecs)03d000 %(name)s (%(levelname)s): %(message)s', datefmt='%Y-%m-%d %H:%M:%S') + formatter.converter = time.gmtime fh.setFormatter(formatter) ch.setFormatter(formatter) # add the handlers to the logger |