Mercurial > libervia-backend
changeset 4016:97df34151c6d
component AP gateway (http): fix missing `pformat` module in verbose mode
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 18 Mar 2023 23:11:28 +0100 |
parents | 2913313ca58f |
children | 4a2c261646b6 |
files | sat/plugins/plugin_comp_ap_gateway/http_server.py |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/sat/plugins/plugin_comp_ap_gateway/http_server.py Sat Mar 18 20:12:38 2023 +0100 +++ b/sat/plugins/plugin_comp_ap_gateway/http_server.py Sat Mar 18 23:11:28 2023 +0100 @@ -1040,6 +1040,7 @@ 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))