1
0
forked from Hay1tsme/artemis

replace print statements with error logging

This commit is contained in:
Hay1tsme 2023-02-19 00:10:42 -05:00
parent a57d2cf71c
commit df4efa1fda

View File

@ -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():