aerogear / offix

GraphQL Offline Client and Server
https://offix.dev
Apache License 2.0
758 stars 45 forks source link

Improved logging for Offix #476

Closed kingsleyzissou closed 4 years ago

kingsleyzissou commented 4 years ago

Feature Request

Investigate better logging for Offix with more meaningful errors to assist debugging.

wtrocki commented 4 years ago

Two ideas:

Debug logging

Debug lib can be used to log messages when:

Debug listener

Add queue listener that will print extra info

shrey commented 4 years ago

Hey, I would like to work on this issue, could you guide me a bit?

wtrocki commented 4 years ago

@shrey Amazing to hear that. We can add debug gradually. Currently the most important area is the scheduler storage interface. Different platforms have issues around that and without logging is hard to get the sense what is the problem.

We can add debug before and after saving, getting and deleting item from queue

https://github.com/aerogear/offix/blob/master/packages/offix-scheduler/src/store/OfflineStore.ts

kingsleyzissou commented 4 years ago

@wtrocki closing this. This has landed in the Datstore side already