megaease / easeprobe

A simple, standalone, and lightweight tool that can do health/status checking, written in Go.
Apache License 2.0
2.18k stars 231 forks source link

log error when meet invalid json #473

Closed suchen-sci closed 10 months ago

suchen-sci commented 10 months ago

In some special cases, json may failed to escape. This pr log errors in these cases and help user to find bug quickly.

codecov-commenter commented 10 months ago

Codecov Report

Attention: 12 lines in your changes are missing coverage. Please review.

Comparison is base (707e216) 99.08% compared to head (03cae20) 98.78%.

Files Patch % Lines
notify/ringcentral/ringcentral.go 0.00% 2 Missing and 1 partial :warning:
notify/wecom/wecom.go 0.00% 2 Missing and 1 partial :warning:
report/result.go 75.00% 2 Missing and 1 partial :warning:
report/sla.go 72.72% 2 Missing and 1 partial :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #473 +/- ## ========================================== - Coverage 99.08% 98.78% -0.31% ========================================== Files 82 85 +3 Lines 5820 5863 +43 ========================================== + Hits 5767 5792 +25 - Misses 40 52 +12 - Partials 13 19 +6 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.