[COOK-3428] Disable logging when `disable_access_log` is true