Browse Source

Improve API error logging to differentiate between builder and client sources

pull/4434/head
Andrew Kingston 5 years ago
parent
commit
b33a2aa662
  1. 2
      packages/builder/src/api.js
  2. 2
      packages/client/src/api.js

2
packages/builder/src/api.js

@ -25,7 +25,7 @@ export const API = createAPIClient({
}
// Log all errors to console
console.error(`HTTP ${status} on ${method}:${url}\n\t${message}`)
console.warn(`[Builder] HTTP ${status} on ${method}:${url}\n\t${message}`)
// Logout on 403's
if (status === 403) {

2
packages/client/src/api.js

@ -32,7 +32,7 @@ export const API = createAPIClient({
}
// Log all errors to console
console.error(`HTTP ${status} on ${method}:${url}:\n\t${message}`)
console.warn(`[Client] HTTP ${status} on ${method}:${url}\n\t${message}`)
},
// Patch certain endpoints with functionality specific to client apps

Loading…
Cancel
Save