You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 21, 2024. It is now read-only.
Having the items in the json output show up in the same order as the variables in the format string improves readability.
Instead of :
log_record = {}
use:
log_record = OrderedDict()
If you're worried about compatibility with older versions of python you could wrap it in a try or something.
try:
from collections import OrderedDict
except Exception:
pass
try:
log_record = OrderedDict()
except Exception:
log_record = {}