Skip to content

chore(deps): bump github.com/ipfs/go-log/v2 from 2.8.2 to 2.9.2 - #11

Merged
github-actions[bot] merged 2 commits into
mainfrom
dependabot/go_modules/github.com/ipfs/go-log/v2-2.9.2
Aug 1, 2026
Merged

github-actions[bot] merged 2 commits into
mainfrom
dependabot/go_modules/github.com/ipfs/go-log/v2-2.9.2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 31, 2026

Copy link
Copy Markdown
Contributor

Bumps github.com/ipfs/go-log/v2 from 2.8.2 to 2.9.2.

Release notes

Sourced from github.com/ipfs/go-log/v2's releases.

v2.9.2

What's Changed

Full Changelog: ipfs/go-log@v2.9.1...v2.9.2

v2.9.1

What's Changed

Full Changelog: ipfs/go-log@v2.9.0...v2.9.1

v2.9.0

The Problem

go-libp2p 0.44 switched from go-log to slog, which broke visibility of go-libp2p logs for applications using go-log. Applications could no longer see go-libp2p logs or adjust their levels at runtime (see kubo#11035).

go-libp2p maintainers evaluated two options presented by Kubo maintainers for addressing this (details): fix the breaking change in go-libp2p, or require each application to add integration code. The manual integration approach was selected.

The Fix

This release adds SlogHandler() to bridge slog-based libraries back into go-log. Applications using go-log (>=2.9)+go-libp2p(>=0.45) need to add this to their init():

import (
    "log/slog"
    golog "github.com/ipfs/go-log/v2"
    "github.com/libp2p/go-libp2p/gologshim"
)
func init() {
// Route all slog logs through go-log
slog.SetDefault(slog.New(golog.SlogHandler()))
// Connect go-libp2p to go-log
gologshim.SetDefaultHandler(golog.SlogHandler())

}

After adding this:

  • go-libp2p logs appear in application output again
  • SetLogLevel("libp2p-swarm", "debug") works again
  • logs can be piped to dynamically created sinks, like ipfs log tail
  • All logs use go-log's formatting (JSON/color/nocolor)

More Info

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/ipfs/go-log/v2](https://github.com/ipfs/go-log) from 2.8.2 to 2.9.2.
- [Release notes](https://github.com/ipfs/go-log/releases)
- [Commits](ipfs/go-log@v2.8.2...v2.9.2)

---
updated-dependencies:
- dependency-name: github.com/ipfs/go-log/v2
  dependency-version: 2.9.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update go code labels Jul 31, 2026
@github-actions
github-actions Bot merged commit 02701ad into main Aug 1, 2026
5 checks passed
@dependabot
dependabot Bot deleted the dependabot/go_modules/github.com/ipfs/go-log/v2-2.9.2 branch August 1, 2026 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant