Fix :log-open
when --log
is specified
#7573
Merged
:log-open
when --log
is specified
#7573