From f7287c448ea6f49384610195cddbc67e27f6947d Mon Sep 17 00:00:00 2001 From: Diana Shkolnikov Date: Mon, 5 Dec 2016 14:31:52 -0500 Subject: [PATCH 1/2] fix: minimize debug logging --- query/text_parser_addressit.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/query/text_parser_addressit.js b/query/text_parser_addressit.js index 00e60724..9d97a683 100644 --- a/query/text_parser_addressit.js +++ b/query/text_parser_addressit.js @@ -31,9 +31,7 @@ function addParsedVariablesToQueryVariables( parsed_text, vs ){ // ? else { - logger.warn( 'chaos monkey asks: what happens now?' ); - logger.warn( parsed_text ); - try{ throw new Error(); } catch(e){ logger.warn( e.stack ); } // print a stack trace + logger.warn( 'chaos monkey asks: what happens now?', parsed_text ); } // ==== add parsed matches [address components] ==== From bccae79e7022ef6a23356ade51fae37919597e15 Mon Sep 17 00:00:00 2001 From: Diana Shkolnikov Date: Mon, 5 Dec 2016 14:41:08 -0500 Subject: [PATCH 2/2] get rid of parsed_text logging because privacy --- query/text_parser_addressit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/query/text_parser_addressit.js b/query/text_parser_addressit.js index 9d97a683..84979c15 100644 --- a/query/text_parser_addressit.js +++ b/query/text_parser_addressit.js @@ -31,7 +31,7 @@ function addParsedVariablesToQueryVariables( parsed_text, vs ){ // ? else { - logger.warn( 'chaos monkey asks: what happens now?', parsed_text ); + logger.warn( 'chaos monkey asks: what happens now?' ); } // ==== add parsed matches [address components] ====