Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Nov 6, 2025

Bumps github.com/ipfs/go-log/v2 from 2.8.1 to 2.9.0.

Release notes

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

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+go-libp2p 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

See the README: Slog integration for details.

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

[!NOTE] This release was brought to you by the Shipyard team.

v2.8.2

What's Changed

... (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 merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @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.1 to 2.9.0.
- [Release notes](https://github.com/ipfs/go-log/releases)
- [Commits](ipfs/go-log@v2.8.1...v2.9.0)

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

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Nov 6, 2025
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