Skip to content

Commit

Permalink
fix: 🐛 stop logging redis key as it might have sensitive info
Browse files Browse the repository at this point in the history
  • Loading branch information
raduachim committed Dec 6, 2024
1 parent 5627eea commit 3796c8e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/plenty-deers-exist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@sebspark/promise-cache": patch
---

stop logging redis keys as they might have sensitive information.
2 changes: 1 addition & 1 deletion packages/promise-cache/src/promiseCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export class PromiseCache<U> {
if (cached) {
if (!ttlKeyInSeconds && cached.ttl !== effectiveTTL) {
console.error(
`WARNING: TTL mismatch for key: ${effectiveKey}. It is recommended to use the same TTL for the same key.`
`WARNING: TTL mismatch for key. It is recommended to use the same TTL for the same key.`
)
}

Expand Down

0 comments on commit 3796c8e

Please sign in to comment.