From 111af3e129b555725491e88d0710a30b3f338666 Mon Sep 17 00:00:00 2001 From: buhle79 Date: Mon, 22 Jul 2024 11:53:02 +0200 Subject: [PATCH] removed console logs --- go-app-ussd_clinic_rapidpro.js | 3 --- src/ussd_clinic_rapidpro.js | 3 --- 2 files changed, 6 deletions(-) diff --git a/go-app-ussd_clinic_rapidpro.js b/go-app-ussd_clinic_rapidpro.js index fdb2fdac..c6d32041 100644 --- a/go-app-ussd_clinic_rapidpro.js +++ b/go-app-ussd_clinic_rapidpro.js @@ -1278,7 +1278,6 @@ go.app = function() { return self.states.create("state_accept_popi"); }).catch(function(e) { // Go to error state after 3 failed HTTP requests - console.log("Template Error: ", e.message); opts.http_error_count = _.get(opts, "http_error_count", 0) + 1; if (opts.http_error_count === 3) { self.im.log.error(e.message); @@ -1435,7 +1434,6 @@ go.app = function() { return self.states.create("state_trigger_rapidpro_flow"); }).catch(function(e) { // Go to error state after 3 failed HTTP requests - console.log("Status Error: ", e.message); opts.http_error_count = _.get(opts, "http_error_count", 0) + 1; if (opts.http_error_count === 3) { self.im.log.error(e.message); @@ -1517,7 +1515,6 @@ go.app = function() { return self.states.create("state_registration_complete"); }).catch(function(e) { // Go to error state after 3 failed HTTP requests - console.log("Trigger RP: ", e.message); opts.http_error_count = _.get(opts, "http_error_count", 0) + 1; if (opts.http_error_count === 3) { self.im.log.error(e.message); diff --git a/src/ussd_clinic_rapidpro.js b/src/ussd_clinic_rapidpro.js index 4e50f759..06c86cce 100644 --- a/src/ussd_clinic_rapidpro.js +++ b/src/ussd_clinic_rapidpro.js @@ -1017,7 +1017,6 @@ go.app = function() { return self.states.create("state_accept_popi"); }).catch(function(e) { // Go to error state after 3 failed HTTP requests - console.log("Template Error: ", e.message); opts.http_error_count = _.get(opts, "http_error_count", 0) + 1; if (opts.http_error_count === 3) { self.im.log.error(e.message); @@ -1174,7 +1173,6 @@ go.app = function() { return self.states.create("state_trigger_rapidpro_flow"); }).catch(function(e) { // Go to error state after 3 failed HTTP requests - console.log("Status Error: ", e.message); opts.http_error_count = _.get(opts, "http_error_count", 0) + 1; if (opts.http_error_count === 3) { self.im.log.error(e.message); @@ -1256,7 +1254,6 @@ go.app = function() { return self.states.create("state_registration_complete"); }).catch(function(e) { // Go to error state after 3 failed HTTP requests - console.log("Trigger RP: ", e.message); opts.http_error_count = _.get(opts, "http_error_count", 0) + 1; if (opts.http_error_count === 3) { self.im.log.error(e.message);