mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-07-29 15:55:47 -05:00
Added custom log formatter util.LogFormatter that makes the human-readable time stamp in UTC
This commit is contained in:
@@ -25,6 +25,8 @@ import os
|
||||
from os import path
|
||||
import imp
|
||||
import optparse
|
||||
import logging
|
||||
import time
|
||||
import krbV
|
||||
|
||||
|
||||
@@ -122,3 +124,10 @@ def add_global_options(parser=None):
|
||||
help='Produce more verbose output',
|
||||
)
|
||||
return parser
|
||||
|
||||
|
||||
class LogFormatter(logging.Formatter):
|
||||
"""
|
||||
Log formatter that uses UTC for all timestamps.
|
||||
"""
|
||||
converter = time.gmtime
|
||||
|
||||
Reference in New Issue
Block a user