mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-20 18:29:06 +00:00
Only log zod when there's an error
This commit is contained in:
@@ -503,7 +503,6 @@ async function _promiseAjax<Type extends ResponseType, OutputShape>(
|
|||||||
) {
|
) {
|
||||||
if (options.zodSchema) {
|
if (options.zodSchema) {
|
||||||
result = parseUnknown(options.zodSchema, result);
|
result = parseUnknown(options.zodSchema, result);
|
||||||
log.info(logId, 'Zod schema applied');
|
|
||||||
}
|
}
|
||||||
if (options.validateResponse) {
|
if (options.validateResponse) {
|
||||||
if (!_validateResponse(result, options.validateResponse)) {
|
if (!_validateResponse(result, options.validateResponse)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user