Skip to content

Commit 11ececc

Browse files
fix(redis): use logger in hash key methods
1 parent 4db2fff commit 11ececc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/adapters/redis-adapter.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,19 +98,19 @@ export class RedisAdapter implements ICacheAdapter {
9898

9999
public async deleteKey(key: string): Promise<number> {
100100
await this.connection
101-
debug('delete %s key', key)
101+
logger('delete %s key', key)
102102
return this.client.del(key)
103103
}
104104

105105
public async getHKey(key: string, field: string): Promise<string> {
106106
await this.connection
107-
debug('get %s field for key %s', field, key)
107+
logger('get %s field for key %s', field, key)
108108
return await this.client.hGet(key, field) ?? ''
109109
}
110110

111111
public async setHKey(key: string, fields: Record<string, string>): Promise<boolean> {
112112
await this.connection
113-
debug('set %s key', key)
113+
logger('set %s key', key)
114114
return await this.client.hSet(key, fields) >= 0
115115
}
116116

0 commit comments

Comments
 (0)