Closed levibostian closed 6 years ago
I have another use case for this. While writing my app, I created a new pending api task. I want to make sure that it runs after I do a certain action and a 200 returns. It would be nice to see tasks that return back 200 as well to make sure it succeeds.
A companion desktop app would be nice. Would be more convenient while developing.
I am going to skip this for now because it may be out of the scope of Wendy.
I added Wendy debug logging functionality in this commit which will help the dev get farther along.
Because the pending api tasks run in the background, you never really know when you have an error with an API call. a 401, 500, 403, etc you don't really get unless the dev handles them him/herself.
The lib should have a dev debug mode. Something that when an API error besides a 200 triggers, it gives you an alert. Well, actually, it should have diff levels of debugging. You might care about the 200 errors to assert that the API call actually ran.
Show a taskbar notification, log to Studio, log to a companion app on device (write to a shared file on the OS that each app can read/write to), whatever it needs to be.