From 5f6fefa7a6e702d82b8cc36df7ea183400bc0501 Mon Sep 17 00:00:00 2001 From: Jacob Gunther <16949253+PassTheMayo@users.noreply.github.com> Date: Mon, 30 Apr 2018 16:40:28 -0500 Subject: [PATCH] Fixed unnecessary logging when document not found --- lib/document_stores/rethinkdb.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);