Logging: log method names at INFO level, also log API return data at DEBUG level
This commit is contained in:
parent
5c9509dfc4
commit
dd8836e59b
2 changed files with 8 additions and 4 deletions
|
@ -822,7 +822,7 @@ class _Request:
|
|||
"""Representing an abstract web service operation."""
|
||||
|
||||
def __init__(self, network, method_name, params=None):
|
||||
logger.debug(method_name)
|
||||
logger.info(method_name)
|
||||
|
||||
if params is None:
|
||||
params = {}
|
||||
|
@ -962,7 +962,7 @@ class _Request:
|
|||
raise MalformedResponseError(self.network, e) from e
|
||||
|
||||
e = doc.getElementsByTagName("lfm")[0]
|
||||
# logger.debug(doc.toprettyxml())
|
||||
logger.debug(doc.toprettyxml())
|
||||
|
||||
if e.getAttribute("status") != "ok":
|
||||
e = doc.getElementsByTagName("error")[0]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue