add some logging
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Torma Kristóf 2020-05-22 03:37:11 +02:00
parent a450b739d3
commit 03a06728bb
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047

View File

@ -41,6 +41,7 @@ class Glue {
consume(inputQueueName) {
consumeMessageWithConfirm({
val rawJson = String(it.body)
println(rawJson)
val probability = Random.nextDouble(0.0,1.0)
val outputObject = OutputModel(tag=rawJson, probability=probability)
outputChannel.basicPublish(mqOutputExchange,"", null, gson.toJson(outputObject).toByteArray())