client: switch logging to minilog
This commit is contained in:
1 parent
1adc2bbd7d
commit
aee1e52776
41 files changed
+151
-96
No files matched your search
@@ -3,10 +3,10 @@ const ErrorResponse = {
|
||||
}
|
||||
|
||||
export const checkGraphQLError = error => {
|
||||
console.log('checkGraphQLError ', ErrorResponse)
|
||||
log.debug('checkGraphQLError ', ErrorResponse)
|
||||
if (error.search(/unique constraint/)) {
|
||||
const field = error.substring(error.indexOf('=') + 1)
|
||||
console.log('unique constraint', field.replace(/ +/g, ''))
|
||||
log.debug('unique constraint', field.replace(/ +/g, ''))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user