Skip to content

Commit

Permalink
Fix rebase conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed Nov 15, 2021
1 parent bd7c87e commit dc359bc
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 59 deletions.
4 changes: 2 additions & 2 deletions dot/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (
"github.com/ChainSafe/gossamer/dot/sync"
"github.com/ChainSafe/gossamer/dot/system"
"github.com/ChainSafe/gossamer/dot/types"
"github.com/ChainSafe/gossamer/internal/log"
"github.com/ChainSafe/gossamer/internal/pprof"
"github.com/ChainSafe/gossamer/lib/babe"
"github.com/ChainSafe/gossamer/lib/common"
Expand All @@ -31,7 +32,6 @@ import (
"github.com/ChainSafe/gossamer/lib/runtime/life"
"github.com/ChainSafe/gossamer/lib/runtime/wasmer"
"github.com/ChainSafe/gossamer/lib/utils"
log "github.com/ChainSafe/log15"
)

func newInMemoryDB(path string) (chaindb.Database, error) {
Expand Down Expand Up @@ -413,6 +413,6 @@ func createDigestHandler(st *state.Service) (*digest.Handler, error) {
}

func createPprofService(settings pprof.Settings) (service *pprof.Service) {
pprofLogger := log.New("pkg", "pprof")
pprofLogger := log.NewFromGlobal(log.AddContext("pkg", "pprof"))
return pprof.NewService(settings, pprofLogger)
}
6 changes: 3 additions & 3 deletions internal/httpserver/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package httpserver
// Logger is the logger interface accepted by the
// HTTP server.
type Logger interface {
Info(msg string, ctx ...interface{})
Warn(msg string, ctx ...interface{})
Error(msg string, ctx ...interface{})
Info(msg string)
Warn(msg string)
Error(msg string)
}
39 changes: 12 additions & 27 deletions internal/httpserver/logger_mock_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 12 additions & 27 deletions internal/pprof/logger_mock_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dc359bc

Please sign in to comment.