Skip to content
This repository was archived by the owner on Mar 2, 2022. It is now read-only.

Make parsing restic output resilient to non-json output #81

Merged
merged 2 commits into from
Mar 29, 2021

Conversation

cimnine
Copy link
Contributor

@cimnine cimnine commented Mar 29, 2021

This PR changes the parsing logic for parsing the restic output.
When some output can't be parsed as JSON, then it will still be written to the log, but it will not stop the processing of the output, as it did before.

As discussed in #79 (comment)

@cimnine cimnine requested a review from Kidswiss March 29, 2021 08:23
@cimnine cimnine added the bug Something isn't working label Mar 29, 2021
@cimnine cimnine self-assigned this Mar 29, 2021
@cimnine cimnine requested a review from Kidswiss March 29, 2021 12:57
@Kidswiss
Copy link
Contributor

LGTM

Just curious: how did you trigger the out of bounds in the snapshot parsing?

@cimnine
Copy link
Contributor Author

cimnine commented Mar 29, 2021

The go test implementation doesn't seem to work on (my) Mac. Therefore no snapshots were ever created, hence no were found, hence the out of bounds error was triggered.

@cimnine cimnine merged commit 7596325 into master Mar 29, 2021
@cimnine cimnine deleted the ResilientLogging branch March 29, 2021 13:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants