Add logging info about Shopify request

The shopify_app does not generate any logging except the raw info from httpx.
This commit is contained in:
Cédric Krier
2026-08-06 08:48:19 +02:00
parent 8c09693e15
commit 264cb3eaee
+6
View File
@@ -322,6 +322,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