mirror of
https://github.com/juanfont/headscale.git
synced 2024-12-20 19:09:07 +01:00
turn off grpc communication logging (#1640)
This commit is contained in:
parent
790bbe5e8d
commit
cf8ffea154
@ -39,6 +39,7 @@ Use error group handling to ensure tests actually pass [#1535](https://github.co
|
|||||||
Fix hang on SIGTERM [#1492](https://github.com/juanfont/headscale/pull/1492) taken from [#1480](https://github.com/juanfont/headscale/pull/1480)
|
Fix hang on SIGTERM [#1492](https://github.com/juanfont/headscale/pull/1492) taken from [#1480](https://github.com/juanfont/headscale/pull/1480)
|
||||||
Send logs to stderr by default [#1524](https://github.com/juanfont/headscale/pull/1524)
|
Send logs to stderr by default [#1524](https://github.com/juanfont/headscale/pull/1524)
|
||||||
Fix [TS-2023-006](https://tailscale.com/security-bulletins/#ts-2023-006) security UPnP issue [#1563](https://github.com/juanfont/headscale/pull/1563)
|
Fix [TS-2023-006](https://tailscale.com/security-bulletins/#ts-2023-006) security UPnP issue [#1563](https://github.com/juanfont/headscale/pull/1563)
|
||||||
|
Turn off gRPC logging [#1640](https://github.com/juanfont/headscale/pull/1640) fixes [#1259](https://github.com/juanfont/headscale/issues/1259)
|
||||||
|
|
||||||
## 0.22.3 (2023-05-12)
|
## 0.22.3 (2023-05-12)
|
||||||
|
|
||||||
|
@ -566,7 +566,10 @@ func (h *Headscale) Serve() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Start the local gRPC server without TLS and without authentication
|
// Start the local gRPC server without TLS and without authentication
|
||||||
grpcSocket := grpc.NewServer(zerolog.UnaryInterceptor())
|
grpcSocket := grpc.NewServer(
|
||||||
|
// Uncomment to debug grpc communication.
|
||||||
|
// zerolog.UnaryInterceptor(),
|
||||||
|
)
|
||||||
|
|
||||||
v1.RegisterHeadscaleServiceServer(grpcSocket, newHeadscaleV1APIServer(h))
|
v1.RegisterHeadscaleServiceServer(grpcSocket, newHeadscaleV1APIServer(h))
|
||||||
reflection.Register(grpcSocket)
|
reflection.Register(grpcSocket)
|
||||||
@ -606,7 +609,8 @@ func (h *Headscale) Serve() error {
|
|||||||
grpc.UnaryInterceptor(
|
grpc.UnaryInterceptor(
|
||||||
grpcMiddleware.ChainUnaryServer(
|
grpcMiddleware.ChainUnaryServer(
|
||||||
h.grpcAuthenticationInterceptor,
|
h.grpcAuthenticationInterceptor,
|
||||||
zerolog.NewUnaryServerInterceptor(),
|
// Uncomment to debug grpc communication.
|
||||||
|
// zerolog.NewUnaryServerInterceptor(),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user