fix: pass context into secrets logs (#95944)

This commit is contained in:
Mariell Hoversholm
2024-11-06 12:52:29 +01:00
committed by GitHub
parent 3c1a5ab439
commit f15f6022de
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -105,7 +105,7 @@ func (s *Service) Decrypt(ctx context.Context, payload []byte, secret string) ([
var err error
defer func() {
if err != nil {
s.log.Error("Decryption failed", "error", err)
s.log.FromContext(ctx).Error("Decryption failed", "error", err)
}
}()