Merge pull request #221 from PassTheMayo/patch-1

Fixed unnecessary logging when document not found
master
John Crepezzi 7 years ago committed by GitHub
commit d922667f56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      lib/document_stores/rethinkdb.js

@ -35,7 +35,7 @@ class RethinkDBStore {
this.client.table('uploads').get(md5(key)).run((error, result) => { this.client.table('uploads').get(md5(key)).run((error, result) => {
if (error || !result) { if (error || !result) {
callback(false); callback(false);
winston.error('failed to insert to table', error); if (error) winston.error('failed to insert to table', error);
return; return;
} }
callback(result.data); callback(result.data);

Loading…
Cancel
Save