Add logging info about Shopify request

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

--HG--
branch : 8.0
This commit is contained in:
Cédric Krier
2026-08-06 08:48:19 +02:00
parent e87a391ed4
commit 206bbac206
+6
View File
@@ -327,6 +327,12 @@ class Shop(metaclass=PoolMeta):
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