Skip to content

Commit

Permalink
fix: tracking errors now log at debug level
Browse files Browse the repository at this point in the history
  • Loading branch information
gabidobo committed Sep 21, 2022
1 parent d6fa2b9 commit 98562a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/track.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export const sendBatch = () => {
},
() => {},
);
req.on('error', (error) => logger.error('error tracking call to inspector:', error.message));
req.on('error', (error) => logger.debug('error tracking call to inspector:', error.message));
req.end(JSON.stringify(batch, getCircularReplacer()));
batch = [];
} else if (hasXMLHTTPRequest) {
Expand All @@ -86,8 +86,8 @@ export const sendBatch = () => {
batch = [];
}
} catch (error) {
logger.error('error tracking call to inspector:', error.message);
logger.error('attempted to track:', batch);
logger.debug('error tracking call to inspector:', error.message);
logger.debug('attempted to track:', batch);
} finally {
currentTimer = null;
}
Expand Down

0 comments on commit 98562a3

Please sign in to comment.