From ee127edbf7fcbfc949fbcce56e4307730ae72c51 Mon Sep 17 00:00:00 2001 From: Florian Preinstorfer Date: Fri, 23 Jan 2026 08:19:51 +0100 Subject: [PATCH] Remove trace log for preauthkeys create This always prints a TRC message on `preauthkeys create`. Since we don't print anything for `apikeys create` either we might as well remove it. --- cmd/headscale/cli/preauthkeys.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/cmd/headscale/cli/preauthkeys.go b/cmd/headscale/cli/preauthkeys.go index 51133200..bb909ce2 100644 --- a/cmd/headscale/cli/preauthkeys.go +++ b/cmd/headscale/cli/preauthkeys.go @@ -9,7 +9,6 @@ import ( v1 "github.com/juanfont/headscale/gen/go/headscale/v1" "github.com/prometheus/common/model" "github.com/pterm/pterm" - "github.com/rs/zerolog/log" "github.com/spf13/cobra" "google.golang.org/protobuf/types/known/timestamppb" ) @@ -151,10 +150,6 @@ var createPreAuthKeyCmd = &cobra.Command{ expiration := time.Now().UTC().Add(time.Duration(duration)) - log.Trace(). - Dur("expiration", time.Duration(duration)). - Msg("expiration has been set") - request.Expiration = timestamppb.New(expiration) ctx, client, conn, cancel := newHeadscaleCLIWithConfig()