From df04434e5d24382de4a959ebb371ecb7f1453529 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 7 Mar 2021 10:24:03 +0100 Subject: [PATCH] wpint: be more specific about what we're logging --- inema/wpint.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inema/wpint.py b/inema/wpint.py index c5a8302..2b53683 100644 --- a/inema/wpint.py +++ b/inema/wpint.py @@ -232,12 +232,12 @@ class WarenpostInt(object): def api_create_order(self, items, contact_name, order_status='FINALIZE'): """Issue an API request to create an order consisting of items.""" order = self.build_order(items, contact_name=contact_name, order_status=order_status) - _logger.info("Order: %s", order) + _logger.info("Order Request: %s", order) r = self.request('POST', 'orders', json = order) # TODO: figure out the AWB and the (item, barcode, voucherId, ...) for the items json_resp = r.json() #print(json.dumps(json_resp, indent=4)) - _logger.info("Response: %s", json_resp) + _logger.info("Order Response: %s", json_resp) # TODO: download the PDF for each AWB return json_resp