Skip to content

Commit

Permalink
More context on logs
Browse files Browse the repository at this point in the history
  • Loading branch information
tparker00 committed Aug 9, 2024
1 parent 61f98f4 commit 59845c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/pkg/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 59845c2

Please sign in to comment.