Compare View
Commits (3)
Changes
Showing 2 changed files Side-by-side Diff
gateway/pull.js
... | ... | @@ -121,7 +121,10 @@ function report(data) { |
121 | 121 | } |
122 | 122 | } |
123 | 123 | |
124 | - logger.verbose('Report to CORE using HTTP POST'); | |
124 | + if (!config.do_not_verbose_log_report) { | |
125 | + logger.verbose('Report to CORE using HTTP POST'); | |
126 | + } | |
127 | + | |
125 | 128 | request.post(options, function(error, response, body) { |
126 | 129 | if (error) { |
127 | 130 | logger.warn('Error reporting to CORE', {error: error}); |
... | ... | @@ -129,7 +132,7 @@ function report(data) { |
129 | 132 | else if (response.statusCode != 200) { |
130 | 133 | logger.warn('CORE http response status is not 200', {requestOptions: options, http_response_status: response.statusCode}); |
131 | 134 | } |
132 | - else { | |
135 | + else if (!config.do_not_verbose_log_report) { | |
133 | 136 | logger.verbose('Report has been sent to CORE', {requestOptions: options}); |
134 | 137 | } |
135 | 138 | }); |