mirror of
https://github.com/juanfont/headscale.git
synced 2026-10-25 15:56:49 +09:00
hscontrol: drop the unused grpc-zerolog response-log toggle
The RespLog global was read only by the removed gRPC server's logging interceptor; HTTP logging goes through the chi zerologRequestLogger. Drop the dead toggle and the grpc-zerolog dependency.
This commit is contained in:
1 parent
92048385c2
commit
a707201ec3
4 files changed
+2
-20
No files matched your search
@@ -36,9 +36,7 @@ import (
|
||||
"github.com/juanfont/headscale/hscontrol/types"
|
||||
"github.com/juanfont/headscale/hscontrol/types/change"
|
||||
"github.com/juanfont/headscale/hscontrol/util"
|
||||
zerolog "github.com/philip-bui/grpc-zerolog"
|
||||
"github.com/pkg/profile"
|
||||
zl "github.com/rs/zerolog"
|
||||
"github.com/rs/zerolog/log"
|
||||
"github.com/sasha-s/go-deadlock"
|
||||
"golang.org/x/crypto/acme"
|
||||
@@ -573,12 +571,6 @@ func (h *Headscale) Serve() error {
|
||||
|
||||
go h.scheduledTasks(scheduleCtx)
|
||||
|
||||
if zl.GlobalLevel() == zl.TraceLevel {
|
||||
zerolog.RespLog = true
|
||||
} else {
|
||||
zerolog.RespLog = false
|
||||
}
|
||||
|
||||
// Prepare group for running listeners
|
||||
errorGroup := new(errgroup.Group)
|
||||
|
||||
|
||||
Reference in new issue
Block a user