Skip to content

Commit

Permalink
fix(@aws-amplify/analytics): change logger.error back to debug aws-am…
Browse files Browse the repository at this point in the history
  • Loading branch information
iartemiev authored and Alex Hinson committed May 11, 2020
1 parent 3ac1522 commit 46ee594
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/analytics/src/Providers/AWSPinpointProvider.ts
Expand Up @@ -433,7 +433,7 @@ export class AWSPinpointProvider implements AnalyticsProvider {
const { err, endpointObject } = failureData;
const statusCode = err.$metadata && err.$metadata.httpStatusCode;

logger.error('updateEndpoint failed', err);
logger.debug('updateEndpoint failed', err);

switch (statusCode) {
case BAD_REQUEST_CODE:
Expand Down
2 changes: 1 addition & 1 deletion packages/analytics/src/Providers/EventBuffer.ts
Expand Up @@ -150,7 +150,7 @@ export default class EventsBuffer {
}

private _handlePutEventsFailure(err, eventMap: EventMap) {
logger.error('_putEvents Failed: ', err);
logger.debug('_putEvents Failed: ', err);
const statusCode = err.$metadata && err.$metadata.httpStatusCode;

if (RETRYABLE_CODES.includes(statusCode)) {
Expand Down

0 comments on commit 46ee594

Please sign in to comment.