brave / go-sync

Brave sync server v2
Mozilla Public License 2.0
185 stars 44 forks source link

Update module github.com/rs/zerolog to v1.33.0 #272

Open renovate[bot] opened 3 months ago

renovate[bot] commented 3 months ago

This PR contains the following updates:

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

Release Notes

rs/zerolog (github.com/rs/zerolog) ### [`v1.33.0`](https://togithub.com/rs/zerolog/compare/v1.32.0...v1.33.0) [Compare Source](https://togithub.com/rs/zerolog/compare/v1.32.0...v1.33.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 is behind base branch, or you tick the rebase/retry checkbox.

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



This PR was generated by Mend Renovate. View the repository job log.

github-actions[bot] commented 2 weeks ago

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

Description

This PR makes several improvements and updates to the zerolog library, including updating GitHub Actions, refining log level behavior, enhancing floating-point precision control, and improving the prettylog command.

Changes ### Changes 1. .github/workflows/test.yml: - Updated GitHub Actions versions: - actions/setup-go from v4 to v5 - actions/cache from v3 to v4 2. README.md: - Changed default log level for `log.Print` from *debug* to *trace* - Updated `CallerMarshalFunc` example to use `filepath.Base` - Added documentation for new `FloatingPointPrecision` setting 3. array.go: - Modified `Float32`, `Float64`, and `Dur` methods to use `FloatingPointPrecision` 4. cmd/prettylog/prettylog.go: - Added command-line flag for time format selection - Improved error handling and file processing 5. console.go: - Added `TimeLocation` field to `ConsoleWriter` struct - Implemented `FieldsOrder` for controlling the order of contextual fields - Improved level formatting and time localization 6. console_test.go: - Added tests for new features and edge cases 7. context.go: - Updated float and duration methods to use `FloatingPointPrecision` - Added `Reset` method to `Context` 8. encoder.go: - Updated method signatures to include `precision` parameter 9. event.go: - Updated float and duration methods to use `FloatingPointPrecision` 10. fields.go: - Updated float and duration encoding to use `FloatingPointPrecision` 11. globals.go: - Added `FloatingPointPrecision` global variable - Modified `InterfaceMarshalFunc` to disable HTML escaping 12. internal/json/time.go and internal/json/types.go: - Implemented precision control for float formatting - Improved float formatting to match ES6 number to string conversion 13. log_test.go: - Added test for `Reset` method and HTML non-escaping 14. sampler.go: - Changed `time.Now()` to `TimestampFunc()`

Possible Issues

  1. The change in default log level from debug to trace might affect existing applications that rely on the previous behavior.
  2. The modification of float formatting might lead to slight differences in output for some edge cases.

Security Hotspots

None identified. The changes appear to be focused on performance improvements and feature enhancements rather than security-related modifications.