diff --git a/repository/blocks/EnhancedHttpOutputBlock.mon b/repository/blocks/EnhancedHttpOutputBlock.mon index 1b2746c..10064e6 100644 --- a/repository/blocks/EnhancedHttpOutputBlock.mon +++ b/repository/blocks/EnhancedHttpOutputBlock.mon @@ -183,7 +183,8 @@ event EnhancedHTTPOutput { /** Handle the HTTP response.*/ action handleResponse(Response res) { $base.createTimer(($parameters.timeout.toFloat() / 1000.0), res); // Creates a timer with the specified duration. - log "Called handleResponse: " + res.payload.data.toString() at INFO; + + log "Called handleResponse: " + res.payload.data.toString() at INFO; if not res.isSuccess() { log "Unable to connect " +$parameters.host+". Error code: " + res.statusMessage at WARN; } @@ -198,11 +199,13 @@ event EnhancedHTTPOutput { Response response := $payload; dictionary propertyValues := {}; any k; - log "Response raw: " + response.payload.data.toString() at INFO; + + log "Response raw: " + response.payload.data.toString() at INFO; for k in response.payload.data.getKeys() { propertyValues[k.valueToString()] := response.payload.data.getEntry(k); } - log "Response parsed: " + propertyValues.toString() at INFO; + + log "Response parsed: " + propertyValues.toString() at INFO; $setOutput_responseBody($activation, Value(true, $activation.timestamp, propertyValues)); $setOutput_statusCode($activation, response.statusCode.toFloat());