def log(msg):
“”“Add to debug_log
.
:param msg: Message.”“”
if not request:
if conf.get("logging") or False:
print repr(msg)
from utils import cstr
debug_log.append(cstr(msg))
I used frappe.log(msg),but I cannot find debug_log anywhere.
thanks