14 lines
439 B
TypeScript
14 lines
439 B
TypeScript
export function logAxiosError(e) {
|
|
console.warn({
|
|
status: e.response.status,
|
|
statusText: e.response.statusText,
|
|
url: e.config.url,
|
|
data: e.response.data,
|
|
rateLimiting: {
|
|
limit: e.response.headers['x-discogs-ratelimit'],
|
|
remaining: e.response.headers['x-discogs-ratelimit-remaining'],
|
|
used: e.response.headers['x-discogs-ratelimit-used'],
|
|
},
|
|
});
|
|
}
|