danitseitlin / redis-modules-sdk-ts

A Software development kit for easier connection and execution of Redis Modules commands.
Apache License 2.0
185 stars 29 forks source link

Redisearch unwanted debug logs #223

Closed anfly0 closed 1 year ago

anfly0 commented 1 year ago

Hi!

There seems to be an issue where the Redisearch module ignores moduleOptions.showDebugLogs and emits debug messages to the log.

The most common messages come from this and this lines.

I guess the issue is here, but I'm not sure I get how the log function is supposed to work. But I assume that if the log level is DEBUG and moduleOptions.showDebugLogs is falsy, the message should be ignored and console.log not called.

Kind regards, and thanks for this awesome package!

danitseitlin commented 1 year ago

@anfly0 Hi, thanks for the issue! will check ASAP

danitseitlin commented 1 year ago

@anfly0 Hi, thanks for the patience. Let me know if the issue is fixed :)