In the partner dashboard, under my app, under extensions, under my product-discount function, i can see logs only of dev stores and not logs of production stores (shops that actually installed our app through the app market). We have a store that the function doesn’t work properly (doesn’t give discount) and I need to see the logs and to debug the function. Is there any way to see the logs of real stores?
To debug issues in production, you’ll need to implement your own logging and error handling mechanism within your app, for example you could use exception tracking using a service like Sentry or Bugsnag.
In this specific case you could request collaborator access to the merchants store to try to determine what is happening with your app on their admin?
Just to be clear - I’m talking about a Shopify Functions (Product Discount API function specifically), not my app code. It’s an extension. To see logs I write to STDERR, and see the logs under extensions tab. Is it by design that I can’t see real shops but only dev shops?
We are also running into this possibly. We have a custom app where functions run perfectly and show run info in the App section of Partners Dashboard. But when we installed the app in the clients store it doesn’t seem to be running the function. There are absolutely no run’s in the partners dashboard. Is this because they are not getting logged? or because the function is simply not running?
We also see this behaviour where we see App Extension logs only for the development store domains and not for any prod store where the app is installed. Some of the app extension in our prod store seems to be failing at random times and I don’t know how to debug them without any logs in the partner dashboard.
According to the docs “all function runs are visible in your Partner Dashboard, but details are only available for failed runs that have been shared by users”. Once there is a failed run you should be able to see a dropdown for that discount on the Discounts tab to share the logs.