go.mod+build: update btclog dep

This commit is contained in:
Elle Mouton committed 2024-11-27 10:44:01 +02:00
1 parent c8cfa59316
commit b98fc168ec
5 files changed
+33 -8

No files matched your search

+4 -5
View File
@@ -67,11 +67,10 @@ func DefaultLogConfig() *LogConfig {
// config struct translates to.
func (cfg *LoggerConfig) HandlerOptions() []btclog.HandlerOption {
opts := []btclog.HandlerOption{
// The default skip depth used by the logging library is 6 but
// since we wrap the logging handlers with another level of
// abstraction with the handlerSet, we increase the skip depth
// to 7 here.
btclog.WithCallSiteSkipDepth(7),
// We wrap the logger provided by the logging library with
// another layer of abstraction with the handlerSet, and so we
// need to increase the default skip depth by 1.
btclog.WithCallSiteSkipDepth(btclog.DefaultSkipDepth + 1),
}
if cfg.NoTimestamps {