client: switch logging to minilog

This commit is contained in:
Barry Low committed 2018-10-30 22:10:16 -07:00
1 parent 1adc2bbd7d
commit aee1e52776
41 files changed
+151 -96

No files matched your search

+2 -2
View File
@@ -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, ''))
}
}