Closed h2570su closed 10 months ago
Hi @h2570su , thanks for contributing! Could you provide a bit more information about why this change is necessary or what problems it solves?
log.Fatal() exits the program immediately. In my opinion, that should been used only if the error is unrecoverable and critical enough. And shouldn't been used in a library because a main program maybe using a different logger implementation, exiting program by std library logger could be hard to trace the location error occurred.
The encoder is returning error, the procedure encoder during reflection fails won't harms whole program. Returning a error to top-level is enough.
Merged, Thanks for the contribution @h2570su!
What type of PR is this? (check all applicable)
Description
Related Tickets & Documents
Added/updated tests?
Run verifications and test
make verify
is passingmake test
is passing