Fix an issue where the log option is applied incorrectly