If there's a logfile directive the path is immediately opened on encountering it (and on failure the process dies). This is problematic when you want to shadow that directive with a later directive (eg. shadow a config file directive on the command line to run in a limited environment). It could be expected if the logging would go to both places, but apparently only the last logfile directive takes effect (and rightly so).

To reproduce: redis-server --logfile /tmp/fakedir/redis.log --logfile stdout

Comment From: arkamar

The PR #6741 will fix this issue.

Comment From: dividedmind

Thanks! Better late than never :)