Hi,
When on production server we can use the web.log as a way of checking errors or weird things users or the system is doing but would be great that those logs are in Date and time order … or before the log is written DATE and TIME stamps should be before the error or the message we are tracking …
Check this log
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 57, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 22, in handle
data = execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 51, in execute_cmd
is_whitelisted(method)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 61, in is_whitelisted
raise frappe.PermissionError(‘Not Allowed, {0}’.format(method))
PermissionError: Not Allowed, <function ping at 0x7f95f837fa28>
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 57, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 22, in handle
data = execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 51, in execute_cmd
is_whitelisted(method)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 61, in is_whitelisted
raise frappe.PermissionError(‘Not Allowed, {0}’.format(method))
PermissionError: Not Allowed, <function make_invoice at 0x7f95f5a35de8>
Because there is no DATE and TIME i don’t know when did this happen and what user did the error come…
Also for all PRINTs i send on the PY as debug to see if is executed, or what value returns or when and what does the Function doing !!!