Fakultas Ilmu Komputer UI

Commit 0143e7cf authored by Alfina Megasiwi's avatar Alfina Megasiwi
Browse files

Fina logging

parent 41d69697
import json
from django.urls import resolve
from datetime import datetime
import datetime
import pytz
from log import API_LOGGER_SIGNAL
from log.utils import get_headers, mask_sensitive_data
......@@ -62,9 +63,10 @@ class APILoggerMiddleware:
except Exception as v:
print("validation error", v)
time_now_zone = datetime.datetime.now(pytz.timezone("Asia/Jakarta"))
date_time_str = time_now_zone.strftime("%Y-%m-%d %H:%M:%S")
data = dict(
time= date_time_str,
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment