diff options
author | tjpcc <tjp@ctrl-c.club> | 2023-10-09 08:58:31 -0600 |
---|---|---|
committer | tjpcc <tjp@ctrl-c.club> | 2023-10-09 08:58:31 -0600 |
commit | 20be557b7bc3d7ada78411b7b279c9f7580d0bc7 (patch) | |
tree | 2a7f6640b0b389ad79fe18a8906642be493aaf60 /finger/serve.go | |
parent | cedcf58ea7d729acb6ed1a9ab7aec1ae38aed102 (diff) |
logging.Base()
Allow users to get access to the base logger *before* it is wrapped with the various levels.
This provides a single override point to filter or redirect all logging.
Diffstat (limited to 'finger/serve.go')
-rw-r--r-- | finger/serve.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/finger/serve.go b/finger/serve.go index ff842e1..db96088 100644 --- a/finger/serve.go +++ b/finger/serve.go @@ -25,7 +25,7 @@ func NewServer( network string, address string, handler types.Handler, - errLog logging.Logger, + baseLog logging.Logger, ) (types.Server, error) { fs := &fingerServer{handler: handler} @@ -33,7 +33,7 @@ func NewServer( address = internal.JoinDefaultPort(address, "79") var err error - fs.Server, err = internal.NewServer(ctx, hostname, network, address, errLog, fs.handleConn) + fs.Server, err = internal.NewServer(ctx, hostname, network, address, baseLog, fs.handleConn) if err != nil { return nil, err } |