cli
cli copied to clipboard
Reduce complexity for logging results
User story
As a developer, I find the current logging logic to be more complex than it needs to be. I want one central point for handling logging results, so that I don't have to track multiple functions across multiple files when I need to maintain related logic (used in both collect and persist inside core).
Acceptance criteria
- [ ] Logging results logic has one central point and a simpler flow.
Implementation details
The current flow is logPersistedResults → logMultipleFileResults → logMultipleResults → logPromiseResults.
The functions pass the errorCallback, failedCallback or succeededFalback to each other along the way.