Improve log message for #3984.