From df4efa1fda20f0c2a64dbbbf188f57cdb09153ac Mon Sep 17 00:00:00 2001 From: Hay1tsme Date: Sun, 19 Feb 2023 00:10:42 -0500 Subject: [PATCH] replace print statements with error logging --- core/allnet.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/allnet.py b/core/allnet.py index 08f636a..bd2ecce 100644 --- a/core/allnet.py +++ b/core/allnet.py @@ -261,7 +261,7 @@ class AllnetServlet: return self.kvp_to_dict(sections) except Exception as e: - print(e) + self.logger.error(e) return None def allnet_req_to_dict(self, data: str) -> Optional[List[Dict[str, Any]]]: @@ -276,7 +276,7 @@ class AllnetServlet: return self.kvp_to_dict(sections) except Exception as e: - print(e) + self.logger.error(e) return None def dict_to_http_form_string(self, data:List[Dict[str, Any]], crlf: bool = False, trailing_newline: bool = True) -> Optional[str]: @@ -303,7 +303,7 @@ class AllnetServlet: return urlencode except Exception as e: - print(e) + self.logger.error(e) return None class AllnetPowerOnRequest():