From 438c5d09c7a3ce609eac66b9c672b8704c534974 Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Mon, 24 Feb 2020 15:08:16 -0400 Subject: [PATCH] log errors --- services/gunDB/contact-api/utils/index.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/services/gunDB/contact-api/utils/index.js b/services/gunDB/contact-api/utils/index.js index 3dc8d71a..c5bb369c 100644 --- a/services/gunDB/contact-api/utils/index.js +++ b/services/gunDB/contact-api/utils/index.js @@ -74,7 +74,9 @@ const tryAndWait = async promGen => { require('../../Mediator/index').getUser() ) ) - } catch (_) {} + } catch (e) { + logger.error(e) + } logger.info(`\n retrying \n`) @@ -87,7 +89,9 @@ const tryAndWait = async promGen => { require('../../Mediator/index').getUser() ) ) - } catch (_) {} + } catch (e) { + logger.error(e) + } logger.info(`\n recreating gun and retrying one last time \n`)