diff options
author | kjaniak <kornel.janiak@nokia.com> | 2018-11-29 13:44:50 +0100 |
---|---|---|
committer | kjaniak <kornel.janiak@nokia.com> | 2018-12-05 14:53:20 +0100 |
commit | 0f7bc6b6ec219b6e22a4b5b5a4ee1efd4e54efba (patch) | |
tree | 593dc7b9487d148160110be532e038f8a383846b /sources/hv-collector-ves-message-generator/src | |
parent | d632aef8303701a1802f817c3d6fdcd4064c32b2 (diff) |
Enhance of logging in test part
Change-Id: Ibdec0ac5cead7e46ada4c32983b9ccf962df703b
Issue-ID: DCAEGEN2-1004
Signed-off-by: kjaniak <kornel.janiak@nokia.com>
Diffstat (limited to 'sources/hv-collector-ves-message-generator/src')
-rw-r--r-- | sources/hv-collector-ves-message-generator/src/main/kotlin/org/onap/dcae/collectors/veshv/ves/message/generator/impl/MessageParametersParserImpl.kt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sources/hv-collector-ves-message-generator/src/main/kotlin/org/onap/dcae/collectors/veshv/ves/message/generator/impl/MessageParametersParserImpl.kt b/sources/hv-collector-ves-message-generator/src/main/kotlin/org/onap/dcae/collectors/veshv/ves/message/generator/impl/MessageParametersParserImpl.kt index 6ef6d53a..88cc47a6 100644 --- a/sources/hv-collector-ves-message-generator/src/main/kotlin/org/onap/dcae/collectors/veshv/ves/message/generator/impl/MessageParametersParserImpl.kt +++ b/sources/hv-collector-ves-message-generator/src/main/kotlin/org/onap/dcae/collectors/veshv/ves/message/generator/impl/MessageParametersParserImpl.kt @@ -22,6 +22,7 @@ package org.onap.dcae.collectors.veshv.ves.message.generator.impl import arrow.core.Option import arrow.core.Try import arrow.core.identity +import org.onap.dcae.collectors.veshv.utils.logging.Logger import org.onap.dcae.collectors.veshv.ves.message.generator.api.MessageParameters import org.onap.dcae.collectors.veshv.ves.message.generator.api.MessageParametersParser import org.onap.dcae.collectors.veshv.ves.message.generator.api.MessageType @@ -40,6 +41,7 @@ internal class MessageParametersParserImpl( Try { request .map { it.asJsonObject() } + .onEach { logger.info { "Parsing MessageParameters body: $it" } } .map { json -> val commonEventHeader = commonEventHeaderParser .parse(json.getJsonObject("commonEventHeader")) @@ -54,4 +56,9 @@ internal class MessageParametersParserImpl( ex.message ?: "Unable to parse message parameters", Option.fromNullable(ex)) } + + companion object { + private val logger = Logger(MessageParametersParserImpl::class) + } + } |