component AP gateway (http): fix missing pformat module in verbose mode
This commit is contained in:
parent
23514e8b37
commit
7787676e4e
1 changed files with 1 additions and 0 deletions
|
|
@ -1040,6 +1040,7 @@ class HTTPAPGServer(web_resource.Resource):
|
|||
to_log.append(f"--- RET (code: {request.code})---")
|
||||
if self.apg.verbose>=2:
|
||||
if ret_data is not None:
|
||||
from pprint import pformat
|
||||
to_log.append(f"{pformat(ret_data)}")
|
||||
to_log.append("---")
|
||||
log.info("\n".join(to_log))
|
||||
|
|
|
|||
Loading…
Reference in a new issue