From d0ecbf99a977f95428c72ec436b96ba17bbcfea0 Mon Sep 17 00:00:00 2001 From: Marco Munizaga Date: Wed, 5 Nov 2025 23:05:50 -0500 Subject: [PATCH] Release v0.45.0 (#3424) Co-authored-by: Marcin Rataj --- gologshim/gologshim.go | 7 ++++++- version.json | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gologshim/gologshim.go b/gologshim/gologshim.go index 19c98e606..57ed3e8aa 100644 --- a/gologshim/gologshim.go +++ b/gologshim/gologshim.go @@ -13,14 +13,19 @@ // // Applications can optionally connect go-libp2p to go-log by calling SetDefaultHandler: // +// import golog "github.com/ipfs/go-log/v2" +// // func init() { -// gologshim.SetDefaultHandler(slog.Default().Handler()) +// gologshim.SetDefaultHandler(golog.SlogHandler()) // } // // When integrated, go-libp2p logs use go-log's formatting and can be controlled // programmatically via go-log's SetLogLevel("subsystem", "level") API to adjust // log verbosity per subsystem at runtime without restarting. // +// Note: SlogHandler() works even when GOLOG_CAPTURE_DEFAULT_SLOG=false, making +// it more reliable than using slog.Default().Handler(). +// // # Standalone Usage // // Without calling SetDefaultHandler, gologshim creates standalone slog handlers diff --git a/version.json b/version.json index 823117cc5..bf3323fcc 100644 --- a/version.json +++ b/version.json @@ -1,3 +1,3 @@ { - "version": "v0.44.0" + "version": "v0.45.0" }