|
@@ -13,7 +13,7 @@ class SystemConsole(Document): |
|
|
def run(self): |
|
|
def run(self): |
|
|
frappe.only_for("System Manager") |
|
|
frappe.only_for("System Manager") |
|
|
try: |
|
|
try: |
|
|
frappe.debug_log = [] |
|
|
|
|
|
|
|
|
frappe.local.debug_log = [] |
|
|
if self.type == "Python": |
|
|
if self.type == "Python": |
|
|
safe_exec(self.console) |
|
|
safe_exec(self.console) |
|
|
self.output = "\n".join(frappe.debug_log) |
|
|
self.output = "\n".join(frappe.debug_log) |
|
|