diff --git a/lib/document_stores/rethinkdb.js b/lib/document_stores/rethinkdb.js index f945fa1..ca825af 100644 --- a/lib/document_stores/rethinkdb.js +++ b/lib/document_stores/rethinkdb.js @@ -35,7 +35,7 @@ class RethinkDBStore { this.client.table('uploads').get(md5(key)).run((error, result) => { if (error || !result) { callback(false); - winston.error('failed to insert to table', error); + if (error) winston.error('failed to insert to table', error); return; } callback(result.data);