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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user