From 59845c291d0ae94237a0e00394786ede30e10e72 Mon Sep 17 00:00:00 2001 From: Tom Parker Date: Thu, 8 Aug 2024 20:50:59 -0400 Subject: [PATCH] More context on logs --- internal/pkg/api/api.go | 2 +- internal/pkg/client/client.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/pkg/api/api.go b/internal/pkg/api/api.go index 629b5b5..548cbda 100644 --- a/internal/pkg/api/api.go +++ b/internal/pkg/api/api.go @@ -96,7 +96,7 @@ func (api *API) getSecretByKey(w http.ResponseWriter, r *http.Request) { defer api.Client.Close() slog.Debug("Connected to bitwarden service") - slog.Debug("Searching for key") + slog.Debug(fmt.Sprintf("Searching for key: %s", key)) res, err := api.Client.GetByKey(key, api.OrgID) if err != nil { slog.Error(fmt.Sprintf("%+v", err)) diff --git a/internal/pkg/client/client.go b/internal/pkg/client/client.go index 863c67f..bd3f4f9 100644 --- a/internal/pkg/client/client.go +++ b/internal/pkg/client/client.go @@ -50,7 +50,7 @@ func (b *Bitwarden) Close() { } func (b *Bitwarden) GetByID(id string) (string, error) { - slog.Debug("Getting secret by ID") + slog.Debug(fmt.Sprintf("Getting secret by ID: %s", id)) value := b.Cache.GetSecret(id) if value != "" { slog.Debug(fmt.Sprintf("%s ID found in cache", id))