details:   https://code.tryton.org/tryton/commit/2f76bddb3b95
branch:    8.0
user:      Cédric Krier <[email protected]>
date:      Thu Aug 06 08:48:19 2026 +0200
description:
        Add logging info about Shopify request

        The shopify_app does not generate any logging except the raw info from 
httpx.
        (grafted from d714021b449cf35300aae970475f19c121c4effb)
diffstat:

 modules/web_shop_shopify/web.py |  6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diffs (16 lines):

diff -r 1d478599c949 -r 2f76bddb3b95 modules/web_shop_shopify/web.py
--- a/modules/web_shop_shopify/web.py   Mon Sep 07 15:24:40 2026 +0200
+++ b/modules/web_shop_shopify/web.py   Thu Aug 06 08:48:19 2026 +0200
@@ -327,6 +327,12 @@
                 if log.detail:
                     msg.append(log.detail)
             raise GraphQLException("\n".join(msg))
+        logger.info("shopify request %s", format_args(
+                query, {
+                    'variables': variables,
+                    'headers': headers,
+                    'max_retries': max_retries,
+                    }, logger.isEnabledFor(logging.DEBUG)))
         if user_errors:
             names = user_errors.split('.')
             errors = result.data

Reply via email to