Skip to content

Commit 5aaa8e6

Browse files
skarimoci.datadog-api-spec
and
ci.datadog-api-spec
authored
Downgrade noisy deserialization error log to debug (#1515)
* downgrade noisy log to debug * pre-commit fixes --------- Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 15d38c5 commit 5aaa8e6

File tree

79 files changed

+552
-552
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+552
-552
lines changed

.generator/src/generator/templates/api/api.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ export class {{ className }}ResponseProcessor {
189189
"{{ responseType }}"
190190
) as {{ responseType }};
191191
} catch (error) {
192-
logger.info(`Got error deserializing error: ${error}`);
192+
logger.debug(`Got error deserializing error: ${error}`);
193193
throw new ApiException<{{ responseType }}>(response.httpStatusCode, bodyText);
194194
}
195195
throw new ApiException<{{ responseType }}>(response.httpStatusCode, body);

packages/datadog-api-client-v1/apis/AWSIntegrationApi.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ export class AWSIntegrationApiResponseProcessor {
555555
"APIErrorResponse"
556556
) as APIErrorResponse;
557557
} catch (error) {
558-
logger.info(`Got error deserializing error: ${error}`);
558+
logger.debug(`Got error deserializing error: ${error}`);
559559
throw new ApiException<APIErrorResponse>(
560560
response.httpStatusCode,
561561
bodyText
@@ -617,7 +617,7 @@ export class AWSIntegrationApiResponseProcessor {
617617
"APIErrorResponse"
618618
) as APIErrorResponse;
619619
} catch (error) {
620-
logger.info(`Got error deserializing error: ${error}`);
620+
logger.debug(`Got error deserializing error: ${error}`);
621621
throw new ApiException<APIErrorResponse>(
622622
response.httpStatusCode,
623623
bodyText
@@ -677,7 +677,7 @@ export class AWSIntegrationApiResponseProcessor {
677677
"APIErrorResponse"
678678
) as APIErrorResponse;
679679
} catch (error) {
680-
logger.info(`Got error deserializing error: ${error}`);
680+
logger.debug(`Got error deserializing error: ${error}`);
681681
throw new ApiException<APIErrorResponse>(
682682
response.httpStatusCode,
683683
bodyText
@@ -739,7 +739,7 @@ export class AWSIntegrationApiResponseProcessor {
739739
"APIErrorResponse"
740740
) as APIErrorResponse;
741741
} catch (error) {
742-
logger.info(`Got error deserializing error: ${error}`);
742+
logger.debug(`Got error deserializing error: ${error}`);
743743
throw new ApiException<APIErrorResponse>(
744744
response.httpStatusCode,
745745
bodyText
@@ -800,7 +800,7 @@ export class AWSIntegrationApiResponseProcessor {
800800
"APIErrorResponse"
801801
) as APIErrorResponse;
802802
} catch (error) {
803-
logger.info(`Got error deserializing error: ${error}`);
803+
logger.debug(`Got error deserializing error: ${error}`);
804804
throw new ApiException<APIErrorResponse>(
805805
response.httpStatusCode,
806806
bodyText
@@ -862,7 +862,7 @@ export class AWSIntegrationApiResponseProcessor {
862862
"APIErrorResponse"
863863
) as APIErrorResponse;
864864
} catch (error) {
865-
logger.info(`Got error deserializing error: ${error}`);
865+
logger.debug(`Got error deserializing error: ${error}`);
866866
throw new ApiException<APIErrorResponse>(
867867
response.httpStatusCode,
868868
bodyText
@@ -922,7 +922,7 @@ export class AWSIntegrationApiResponseProcessor {
922922
"APIErrorResponse"
923923
) as APIErrorResponse;
924924
} catch (error) {
925-
logger.info(`Got error deserializing error: ${error}`);
925+
logger.debug(`Got error deserializing error: ${error}`);
926926
throw new ApiException<APIErrorResponse>(
927927
response.httpStatusCode,
928928
bodyText
@@ -980,7 +980,7 @@ export class AWSIntegrationApiResponseProcessor {
980980
"APIErrorResponse"
981981
) as APIErrorResponse;
982982
} catch (error) {
983-
logger.info(`Got error deserializing error: ${error}`);
983+
logger.debug(`Got error deserializing error: ${error}`);
984984
throw new ApiException<APIErrorResponse>(
985985
response.httpStatusCode,
986986
bodyText
@@ -1042,7 +1042,7 @@ export class AWSIntegrationApiResponseProcessor {
10421042
"APIErrorResponse"
10431043
) as APIErrorResponse;
10441044
} catch (error) {
1045-
logger.info(`Got error deserializing error: ${error}`);
1045+
logger.debug(`Got error deserializing error: ${error}`);
10461046
throw new ApiException<APIErrorResponse>(
10471047
response.httpStatusCode,
10481048
bodyText
@@ -1104,7 +1104,7 @@ export class AWSIntegrationApiResponseProcessor {
11041104
"APIErrorResponse"
11051105
) as APIErrorResponse;
11061106
} catch (error) {
1107-
logger.info(`Got error deserializing error: ${error}`);
1107+
logger.debug(`Got error deserializing error: ${error}`);
11081108
throw new ApiException<APIErrorResponse>(
11091109
response.httpStatusCode,
11101110
bodyText
@@ -1166,7 +1166,7 @@ export class AWSIntegrationApiResponseProcessor {
11661166
"APIErrorResponse"
11671167
) as APIErrorResponse;
11681168
} catch (error) {
1169-
logger.info(`Got error deserializing error: ${error}`);
1169+
logger.debug(`Got error deserializing error: ${error}`);
11701170
throw new ApiException<APIErrorResponse>(
11711171
response.httpStatusCode,
11721172
bodyText
@@ -1227,7 +1227,7 @@ export class AWSIntegrationApiResponseProcessor {
12271227
"APIErrorResponse"
12281228
) as APIErrorResponse;
12291229
} catch (error) {
1230-
logger.info(`Got error deserializing error: ${error}`);
1230+
logger.debug(`Got error deserializing error: ${error}`);
12311231
throw new ApiException<APIErrorResponse>(
12321232
response.httpStatusCode,
12331233
bodyText

packages/datadog-api-client-v1/apis/AWSLogsIntegrationApi.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ export class AWSLogsIntegrationApiResponseProcessor {
316316
"APIErrorResponse"
317317
) as APIErrorResponse;
318318
} catch (error) {
319-
logger.info(`Got error deserializing error: ${error}`);
319+
logger.debug(`Got error deserializing error: ${error}`);
320320
throw new ApiException<APIErrorResponse>(
321321
response.httpStatusCode,
322322
bodyText
@@ -378,7 +378,7 @@ export class AWSLogsIntegrationApiResponseProcessor {
378378
"APIErrorResponse"
379379
) as APIErrorResponse;
380380
} catch (error) {
381-
logger.info(`Got error deserializing error: ${error}`);
381+
logger.debug(`Got error deserializing error: ${error}`);
382382
throw new ApiException<APIErrorResponse>(
383383
response.httpStatusCode,
384384
bodyText
@@ -438,7 +438,7 @@ export class AWSLogsIntegrationApiResponseProcessor {
438438
"APIErrorResponse"
439439
) as APIErrorResponse;
440440
} catch (error) {
441-
logger.info(`Got error deserializing error: ${error}`);
441+
logger.debug(`Got error deserializing error: ${error}`);
442442
throw new ApiException<APIErrorResponse>(
443443
response.httpStatusCode,
444444
bodyText
@@ -498,7 +498,7 @@ export class AWSLogsIntegrationApiResponseProcessor {
498498
"APIErrorResponse"
499499
) as APIErrorResponse;
500500
} catch (error) {
501-
logger.info(`Got error deserializing error: ${error}`);
501+
logger.debug(`Got error deserializing error: ${error}`);
502502
throw new ApiException<APIErrorResponse>(
503503
response.httpStatusCode,
504504
bodyText
@@ -558,7 +558,7 @@ export class AWSLogsIntegrationApiResponseProcessor {
558558
"APIErrorResponse"
559559
) as APIErrorResponse;
560560
} catch (error) {
561-
logger.info(`Got error deserializing error: ${error}`);
561+
logger.debug(`Got error deserializing error: ${error}`);
562562
throw new ApiException<APIErrorResponse>(
563563
response.httpStatusCode,
564564
bodyText
@@ -620,7 +620,7 @@ export class AWSLogsIntegrationApiResponseProcessor {
620620
"APIErrorResponse"
621621
) as APIErrorResponse;
622622
} catch (error) {
623-
logger.info(`Got error deserializing error: ${error}`);
623+
logger.debug(`Got error deserializing error: ${error}`);
624624
throw new ApiException<APIErrorResponse>(
625625
response.httpStatusCode,
626626
bodyText
@@ -679,7 +679,7 @@ export class AWSLogsIntegrationApiResponseProcessor {
679679
"APIErrorResponse"
680680
) as APIErrorResponse;
681681
} catch (error) {
682-
logger.info(`Got error deserializing error: ${error}`);
682+
logger.debug(`Got error deserializing error: ${error}`);
683683
throw new ApiException<APIErrorResponse>(
684684
response.httpStatusCode,
685685
bodyText

packages/datadog-api-client-v1/apis/AuthenticationApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export class AuthenticationApiResponseProcessor {
7474
"APIErrorResponse"
7575
) as APIErrorResponse;
7676
} catch (error) {
77-
logger.info(`Got error deserializing error: ${error}`);
77+
logger.debug(`Got error deserializing error: ${error}`);
7878
throw new ApiException<APIErrorResponse>(
7979
response.httpStatusCode,
8080
bodyText

packages/datadog-api-client-v1/apis/AzureIntegrationApi.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ export class AzureIntegrationApiResponseProcessor {
244244
"APIErrorResponse"
245245
) as APIErrorResponse;
246246
} catch (error) {
247-
logger.info(`Got error deserializing error: ${error}`);
247+
logger.debug(`Got error deserializing error: ${error}`);
248248
throw new ApiException<APIErrorResponse>(
249249
response.httpStatusCode,
250250
bodyText
@@ -304,7 +304,7 @@ export class AzureIntegrationApiResponseProcessor {
304304
"APIErrorResponse"
305305
) as APIErrorResponse;
306306
} catch (error) {
307-
logger.info(`Got error deserializing error: ${error}`);
307+
logger.debug(`Got error deserializing error: ${error}`);
308308
throw new ApiException<APIErrorResponse>(
309309
response.httpStatusCode,
310310
bodyText
@@ -366,7 +366,7 @@ export class AzureIntegrationApiResponseProcessor {
366366
"APIErrorResponse"
367367
) as APIErrorResponse;
368368
} catch (error) {
369-
logger.info(`Got error deserializing error: ${error}`);
369+
logger.debug(`Got error deserializing error: ${error}`);
370370
throw new ApiException<APIErrorResponse>(
371371
response.httpStatusCode,
372372
bodyText
@@ -426,7 +426,7 @@ export class AzureIntegrationApiResponseProcessor {
426426
"APIErrorResponse"
427427
) as APIErrorResponse;
428428
} catch (error) {
429-
logger.info(`Got error deserializing error: ${error}`);
429+
logger.debug(`Got error deserializing error: ${error}`);
430430
throw new ApiException<APIErrorResponse>(
431431
response.httpStatusCode,
432432
bodyText
@@ -486,7 +486,7 @@ export class AzureIntegrationApiResponseProcessor {
486486
"APIErrorResponse"
487487
) as APIErrorResponse;
488488
} catch (error) {
489-
logger.info(`Got error deserializing error: ${error}`);
489+
logger.debug(`Got error deserializing error: ${error}`);
490490
throw new ApiException<APIErrorResponse>(
491491
response.httpStatusCode,
492492
bodyText

packages/datadog-api-client-v1/apis/DashboardListsApi.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ export class DashboardListsApiResponseProcessor {
246246
"APIErrorResponse"
247247
) as APIErrorResponse;
248248
} catch (error) {
249-
logger.info(`Got error deserializing error: ${error}`);
249+
logger.debug(`Got error deserializing error: ${error}`);
250250
throw new ApiException<APIErrorResponse>(
251251
response.httpStatusCode,
252252
bodyText
@@ -308,7 +308,7 @@ export class DashboardListsApiResponseProcessor {
308308
"APIErrorResponse"
309309
) as APIErrorResponse;
310310
} catch (error) {
311-
logger.info(`Got error deserializing error: ${error}`);
311+
logger.debug(`Got error deserializing error: ${error}`);
312312
throw new ApiException<APIErrorResponse>(
313313
response.httpStatusCode,
314314
bodyText
@@ -370,7 +370,7 @@ export class DashboardListsApiResponseProcessor {
370370
"APIErrorResponse"
371371
) as APIErrorResponse;
372372
} catch (error) {
373-
logger.info(`Got error deserializing error: ${error}`);
373+
logger.debug(`Got error deserializing error: ${error}`);
374374
throw new ApiException<APIErrorResponse>(
375375
response.httpStatusCode,
376376
bodyText
@@ -428,7 +428,7 @@ export class DashboardListsApiResponseProcessor {
428428
"APIErrorResponse"
429429
) as APIErrorResponse;
430430
} catch (error) {
431-
logger.info(`Got error deserializing error: ${error}`);
431+
logger.debug(`Got error deserializing error: ${error}`);
432432
throw new ApiException<APIErrorResponse>(
433433
response.httpStatusCode,
434434
bodyText
@@ -491,7 +491,7 @@ export class DashboardListsApiResponseProcessor {
491491
"APIErrorResponse"
492492
) as APIErrorResponse;
493493
} catch (error) {
494-
logger.info(`Got error deserializing error: ${error}`);
494+
logger.debug(`Got error deserializing error: ${error}`);
495495
throw new ApiException<APIErrorResponse>(
496496
response.httpStatusCode,
497497
bodyText

0 commit comments

Comments
 (0)