feat: log pid and user in request logs (#21267)
This commit is contained in:
parent
e98519211e
commit
e1764d5a4b
1 changed files with 2 additions and 0 deletions
|
|
@ -157,6 +157,8 @@ def log_request(request, response):
|
|||
{
|
||||
"site": get_site_name(request.host),
|
||||
"remote_addr": getattr(request, "remote_addr", "NOTFOUND"),
|
||||
"pid": os.getpid(),
|
||||
"user": getattr(frappe.local.session, "user", "NOTFOUND"),
|
||||
"base_url": getattr(request, "base_url", "NOTFOUND"),
|
||||
"full_path": getattr(request, "full_path", "NOTFOUND"),
|
||||
"method": getattr(request, "method", "NOTFOUND"),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue