Closed nkmittal closed 2 years ago
Ad 1: just use logback to configure log level of play.api.cache.redis
logger. Set it to info or higher if you will
Ad 2: unfortunately I don't think so. If the module is enabled then it tries to connect to the server. Maybe you could configure the module to use some mock as default and using environment variables switch it to the real implementation in env with redis available. I believe that what you want to achieve can be done but using env variables and smart configuration.
Thanks for your prompt response. Will try as suggested.
I am using play-redis 2.6.1 in Play 2.6.x in stand-alone mode. There are two issues that I am facing:
by default, this module is generating debug logs and I can't find any config option to disable it.
If I enable play-redis module in config file then by default it always tries to connect to Redis instance. For all developers in the team, the Redis instance is not available thus it continuously keeps printing Error messages to stdout. Is there a config option to disable redis connection ? For example: