Skip to content

Commit

Permalink
fix(connection): apply console.warn in noeviction message
Browse files Browse the repository at this point in the history
  • Loading branch information
hmvs authored and manast committed Jan 31, 2023
1 parent ce19e6d commit 95f171c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classes/redis-connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ export class RedisConnection extends EventEmitter {
if (lines[i].indexOf(maxMemoryPolicyPrefix) === 0) {
const maxMemoryPolicy = lines[i].substr(maxMemoryPolicyPrefix.length);
if (maxMemoryPolicy !== 'noeviction') {
console.error(
console.warn(
`IMPORTANT! Eviction policy is ${maxMemoryPolicy}. It should be "noeviction"`,
);
}
Expand Down

0 comments on commit 95f171c

Please sign in to comment.