From adbacc04f6cdb00c294346f8f5c2a11acae521b7 Mon Sep 17 00:00:00 2001 From: Luiz Costa Date: Mon, 3 Jun 2024 11:51:50 +0100 Subject: [PATCH] debugs --- msp_remoteadmin/tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/msp_remoteadmin/tools.py b/msp_remoteadmin/tools.py index 1c666e1..13872fb 100644 --- a/msp_remoteadmin/tools.py +++ b/msp_remoteadmin/tools.py @@ -13,7 +13,7 @@ PROTOCOL_PORT = { @frappe.whitelist() def create_session(doc, protocol): # DEBUG - print(doc) + print(f"Values from form: {doc}") guaca_config = frappe.get_single('Remote Connections Settings') guacamole_url = f'{guaca_config.guacamole_server}/api/tokens' @@ -31,7 +31,7 @@ def create_session(doc, protocol): if token: # Get credentials from IT User Account acc_doc = frappe.get_doc('IT User Account', doc.name) - print(acc_doc) + print(f"Print doc values: {acc_doc}") username = acc_doc.username password = acc_doc.get_password('password')