From 4f631ce4f6fc3217b3797c9cb6f6ec36fc5beb82 Mon Sep 17 00:00:00 2001 From: Ahmet Alp Balkan Date: Thu, 28 Jun 2018 18:37:16 -0700 Subject: [PATCH] currencyservice: less logs Signed-off-by: Ahmet Alp Balkan --- src/currencyservice/server.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/currencyservice/server.js b/src/currencyservice/server.js index 7cd6539..bd8f7f0 100644 --- a/src/currencyservice/server.js +++ b/src/currencyservice/server.js @@ -53,7 +53,6 @@ function _getCurrencyData (callback) { }); }); } else { - console.log('Using cached currency data...'); callback(_data); } } @@ -83,7 +82,7 @@ function getSupportedCurrencies (call, callback) { * Converts between currencies */ function convert (call, callback) { - console.log('Starting conversion request...'); + console.log('received conversion request'); try { _getCurrencyData((data) => { const request = call.request; @@ -107,11 +106,11 @@ function convert (call, callback) { result.nanos = Math.floor(result.nanos) result.currency_code = request.to_code; - console.log(`Conversion request successful ${result.nanos}..${result.nanos}`); + console.log(`conversion request successful`); callback(null, result); }); } catch (err) { - console.error('Conversion request failed.'); + console.error('conversion request failed.'); console.error(err); callback(err.message); }