aboutsummaryrefslogtreecommitdiff
path: root/src/Logging.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-04-23 21:27:43 +0100
committerGravatar jesopo2019-04-23 21:27:43 +0100
commit87340bcbf91bba1aafd6beb77d6c64a595e6e5b0 (patch)
treed2b9e6568469b071b582eede31381fb089c5f2b4 /src/Logging.py
parentOnly show 'submitted' pull_request_review events (diff)
signature
change utils.iso8601_format to default to no milliseconds, switch to using
utils.iso8601 functions in badges.py
Diffstat (limited to 'src/Logging.py')
-rw-r--r--src/Logging.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Logging.py b/src/Logging.py
index fe7f3f91..49267086 100644
--- a/src/Logging.py
+++ b/src/Logging.py
@@ -13,7 +13,7 @@ LEVELS = {
class BitBotFormatter(logging.Formatter):
def formatTime(self, record, datefmt=None):
datetime_obj = datetime.datetime.fromtimestamp(record.created)
- return utils.iso8601_format(datetime_obj)
+ return utils.iso8601_format(datetime_obj, milliseconds=True)
class Log(object):
def __init__(self, to_file: bool, level: str, location: str):