From 748f15e94cdfeb98ad8e380e534e58cd3081db81 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Sun, 6 Nov 2022 06:22:50 +0000 Subject: [PATCH] simplify prev --- electrum/logging.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/electrum/logging.py b/electrum/logging.py index 5e362f203..54cf35948 100644 --- a/electrum/logging.py +++ b/electrum/logging.py @@ -12,15 +12,11 @@ import platform from typing import Optional, TYPE_CHECKING import copy import subprocess -import time if TYPE_CHECKING: from .simple_config import SimpleConfig -_time_zero = time.time() - - class LogFormatterForFiles(logging.Formatter): def formatTime(self, record, datefmt=None): @@ -41,7 +37,7 @@ file_formatter = LogFormatterForFiles(fmt="%(asctime)22s | %(levelname)8s | %(na class LogFormatterForConsole(logging.Formatter): def formatTime(self, record, datefmt=None): - t = record.created - _time_zero + t = record.relativeCreated / 1000 return f"{t:6.2f}" def format(self, record):