brave / go-sync

Brave sync server v2
Mozilla Public License 2.0
195 stars 48 forks source link

Update module github.com/rs/zerolog to v1.32.0 #208

Closed renovate[bot] closed 7 months ago

renovate[bot] commented 9 months ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/rs/zerolog v1.31.0 -> v1.32.0 age adoption passing confidence

Release Notes

rs/zerolog (github.com/rs/zerolog) ### [`v1.32.0`](https://togithub.com/rs/zerolog/compare/v1.31.0...v1.32.0) [Compare Source](https://togithub.com/rs/zerolog/compare/v1.31.0...v1.32.0)

Configuration

📅 Schedule: Branch creation - " 0-4 * 3" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

â™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by Mend Renovate. View repository job log here.

github-actions[bot] commented 7 months ago

[puLL-Merge] - rs/zerolog@v1.31.0..v1.32.0

Description

This pull request makes several changes and improvements to the zerolog library, including:

The motivation seems to be adding useful new features, fixing bugs, and general code cleanup and modernization.

Changes ### Changes - `README.md`: Update example hook code - `benchmark_test.go`, `binary_test.go`, `writer_test.go` and others: Replace deprecated `ioutil.Discard` with `io.Discard` - `cmd/prettylog/prettylog.go`: Add ability to read from file args in addition to stdin pipe - `console.go`: - Add `FormatPrepare` option to preprocess log event map before formatting - Add `Close` method to close underlying writer if it implements `io.Closer` - Update default formatters and color handling - `context.go`: - Allow passing multiple hooks to `Logger.Hook` - Recursively format `error` fields - `event.go`: Recursively format `error` fields when using `Fields` - `log.go`: - Flush writer on `Fatal` to avoid dropping messages - Add `Println` method - `writer.go`: Add new `TriggerLevelWriter` and `Close` methods - `hlog/*`, `pkgerrors/*`: Add new HTTP middleware and error stack trace formatting

Security Hotspots

The rest of the changes look safe. The core zerolog APIs have not changed in backwards incompatible ways. There don't seem to be any obvious vulnerabilities introduced, assuming the library is used as intended.