Only log zod when there's an error

This commit is contained in:
yash-signal 2025-05-16 13:14:16 -05:00 committed by GitHub
parent 40fab38a4b
commit 3db7bbb476
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -503,7 +503,6 @@ async function _promiseAjax<Type extends ResponseType, OutputShape>(
) {
if (options.zodSchema) {
result = parseUnknown(options.zodSchema, result);
log.info(logId, 'Zod schema applied');
}
if (options.validateResponse) {
if (!_validateResponse(result, options.validateResponse)) {