|
@@ -42,6 +42,7 @@ class Monitor: |
|
|
if self.transaction_type == "request": |
|
|
if self.transaction_type == "request": |
|
|
self.data = frappe.form_dict |
|
|
self.data = frappe.form_dict |
|
|
self.headers = dict(frappe.request.headers) |
|
|
self.headers = dict(frappe.request.headers) |
|
|
|
|
|
self.ip = frappe.local.request_ip |
|
|
self.method = frappe.request.method |
|
|
self.method = frappe.request.method |
|
|
self.path = frappe.request.path |
|
|
self.path = frappe.request.path |
|
|
else: |
|
|
else: |
|
@@ -67,6 +68,7 @@ class Monitor: |
|
|
update = { |
|
|
update = { |
|
|
"data": self.data, |
|
|
"data": self.data, |
|
|
"headers": self.headers, |
|
|
"headers": self.headers, |
|
|
|
|
|
"ip": self.ip, |
|
|
"method": self.method, |
|
|
"method": self.method, |
|
|
"path": self.path, |
|
|
"path": self.path, |
|
|
} |
|
|
} |
|
|