only print warning for s3 in production