Repository navigation
vendor: github.com/sirupsen/logrus v1.10.1 - #13294
Conversation
There was a problem hiding this comment.
Pull request overview
Updates the vendored github.com/sirupsen/logrus dependency to an untagged commit (pseudo-version) beyond v1.9.4, bringing in upstream formatting, terminal-detection, and concurrency/race fixes.
Changes:
- Bump
github.com/sirupsen/logrustov1.9.5-0.20260426203557-6878cb36b029(vendored +go.mod/go.sumupdates). - Sync upstream formatter refactors (text/json), including new color/prefix handling and various performance/concurrency improvements.
- Refresh OS/build-tag terminal detection matrix (including TinyGo support and WASI handling changes).
Reviewed changes
Copilot reviewed 1 out of 29 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| vendor/modules.txt | Updates vendored module version metadata for logrus. |
| vendor/github.com/sirupsen/logrus/writer.go | Minor internal cleanup of writer logging function selection and any usage. |
| vendor/github.com/sirupsen/logrus/text_formatter.go | Significant refactor of text formatting (sorting, quoting, coloring, terminal detection). |
| vendor/github.com/sirupsen/logrus/terminal_check_windows.go | Updates build tags and Windows terminal detection implementation. |
| vendor/github.com/sirupsen/logrus/terminal_check_wasip1.go | Removes WASI Preview 1 terminal stub (moved to consolidated no-terminal handling). |
| vendor/github.com/sirupsen/logrus/terminal_check_wasi.go | Removes legacy WASI terminal stub (moved to consolidated no-terminal handling). |
| vendor/github.com/sirupsen/logrus/terminal_check_unix.go | Updates build tags to exclude TinyGo and adjusts supported targets. |
| vendor/github.com/sirupsen/logrus/terminal_check_tinygo.go | Adds TinyGo-specific terminal check implementation. |
| vendor/github.com/sirupsen/logrus/terminal_check_solaris.go | Adds/updates build tags and keeps Solaris terminal probing. |
| vendor/github.com/sirupsen/logrus/terminal_check_notappengine.go | Tightens build tags and adds fd overflow guard before int conversion. |
| vendor/github.com/sirupsen/logrus/terminal_check_no_terminal.go | Consolidates “no terminal” platforms (incl. wasi/wasip1) and simplifies signature. |
| vendor/github.com/sirupsen/logrus/terminal_check_js.go | Removes JS-specific terminal stub (covered by consolidated no-terminal handling). |
| vendor/github.com/sirupsen/logrus/terminal_check_bsd.go | Updates build tags to exclude TinyGo and clarifies BSD targets. |
| vendor/github.com/sirupsen/logrus/terminal_check_appengine.go | Updates build tags and simplifies App Engine terminal check. |
| vendor/github.com/sirupsen/logrus/logrus.go | Internal parsing/level string logic changes and any modernization. |
| vendor/github.com/sirupsen/logrus/logger.go | Logger API/internal updates: hook snapshotting, exit func type, any modernization. |
| vendor/github.com/sirupsen/logrus/level.go | Adds cached ANSI-colored level prefix helpers used by the text formatter. |
| vendor/github.com/sirupsen/logrus/json_formatter.go | Formatter refactor and small performance tweaks (caller formatting, buffer handling). |
| vendor/github.com/sirupsen/logrus/formatter.go | Documentation/constant restructuring (default field count, timestamp format doc). |
| vendor/github.com/sirupsen/logrus/exported.go | Documentation refresh and any modernization for package-level helpers. |
| vendor/github.com/sirupsen/logrus/entry.go | Concurrency/race-related refactors (formatter snapshotting, hook selection, cloning). |
| vendor/github.com/sirupsen/logrus/doc.go | Documentation formatting cleanup (Go doc example formatting). |
| vendor/github.com/sirupsen/logrus/buffer_pool.go | Initializes default buffer pool via var init instead of init(). |
| vendor/github.com/sirupsen/logrus/README.md | README maintenance-mode wording + minor doc updates. |
| vendor/github.com/sirupsen/logrus/CHANGELOG.md | Changelog content updates for older versions included in vendored tree. |
| vendor/github.com/sirupsen/logrus/.travis.yml | Removes Travis CI config from vendored dependency. |
| vendor/github.com/sirupsen/logrus/.golangci.yml | Updates vendored golangci-lint configuration. |
| go.sum | Updates checksums for the new logrus pseudo-version. |
| go.mod | Updates required logrus version to the pseudo-version. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
PR needs rebase. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
de778ba to
09098e1
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 29 changed files in this pull request and generated no new comments.
Suppressed comments (1)
go.mod:63
- The PR description links a logrus compare diff ending at commit 6878cb36b029, but this update actually vendors pseudo-version v1.9.5-0.20260813103326-84cedf9d8b02 (commit 84cedf9d8b02). To avoid confusion during review/audits, please update the PR description (and/or title) to reference the commit being vendored here.
github.com/pelletier/go-toml/v2 v2.4.3
github.com/prometheus/client_golang v1.24.0
github.com/prometheus/client_model v0.6.2
github.com/sirupsen/logrus v1.9.5-0.20260813103326-84cedf9d8b02 // master (v1.10.0-dev)
github.com/stretchr/testify v1.11.1
09098e1 to
23e9f19
Compare
23e9f19 to
6d162c4
Compare
Notable changes: - Add bidirectional `log/slog` integration with a Logrus hook and `slog.Handler`. - Add minimal, composable logging interfaces for individual log levels. - Fix reentrant logging deadlocks and improve concurrency safety around formatters, hooks, and entries. - Fix generic `Log`, `Logf`, `Logln`, and `LogFn` methods unexpectedly panicking at `PanicLevel`. - Allow `Entry.Caller` to be set explicitly and preserved across derived entries. - Improve `TextFormatter` performance and reduce allocations significantly. - Improve common Logger and Entry hot paths and caller-reporting performance. - Update `TextFormatter` handling for `[]byte`, debug/trace colors, and Windows ANSI terminals. - Raise the minimum supported Go version to Go 1.23. - Deprecate `Entry.HasCaller` and `MutexWrap`. release-notes: https://github.com/sirupsen/logrus/releases/tag/v1.10.0 full diff: sirupsen/logrus@v1.9.4...v1.10.0 Signed-off-by: Sebastiaan van Stijn <[email protected]>
6d162c4 to
f511928
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 29 changed files in this pull request and generated no new comments.
Suppressed comments (1)
go.mod:63
- The PR description text references logrus v1.10.0 and links to the v1.10.0 release notes/diff, but the code change here vendors v1.10.1. Please update the PR description/release-notes links to match v1.10.1 so dependency audits don’t have to reconcile mismatched metadata.
github.com/pelletier/go-toml/v2 v2.4.3
github.com/prometheus/client_golang v1.24.0
github.com/prometheus/client_model v0.6.2
github.com/sirupsen/logrus v1.10.1
github.com/stretchr/testify v1.12.1
vendor: github.com/sirupsen/logrus v1.10.0
Notable changes:
log/slogintegration with a Logrus hook andslog.Handler.Log,Logf,Logln, andLogFnmethods unexpectedly panicking atPanicLevel.Entry.Callerto be set explicitly and preserved across derived entries.TextFormatterperformance and reduce allocations significantly.TextFormatterhandling for[]byte, debug/trace colors, and Windows ANSI terminals.Entry.HasCallerandMutexWrap.release-notes: https://github.com/sirupsen/logrus/releases/tag/v1.10.0
full diff: sirupsen/logrus@v1.9.4...v1.10.1