Ensure no logging if `log` === false.