cli icon indicating copy to clipboard operation
cli copied to clipboard

Reduce complexity for logging results

Open Tlacenka opened this issue 1 year ago • 0 comments

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 logPersistedResultslogMultipleFileResultslogMultipleResultslogPromiseResults. The functions pass the errorCallback, failedCallback or succeededFalback to each other along the way.

Tlacenka avatar Mar 12 '24 10:03 Tlacenka