From 7d555d00b2e0a450acb33e26d91581c86a54a68e Mon Sep 17 00:00:00 2001 From: Mikhail Yasnov Date: Mon, 19 Jul 2021 18:13:26 +0300 Subject: [PATCH] Ignore LogData error when convert to json --- logger/src/main/kotlin/ru/touchin/logger/dto/LogData.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/logger/src/main/kotlin/ru/touchin/logger/dto/LogData.kt b/logger/src/main/kotlin/ru/touchin/logger/dto/LogData.kt index f273c06..d5874a3 100644 --- a/logger/src/main/kotlin/ru/touchin/logger/dto/LogData.kt +++ b/logger/src/main/kotlin/ru/touchin/logger/dto/LogData.kt @@ -1,11 +1,13 @@ package ru.touchin.logger.dto +import com.fasterxml.jackson.annotation.JsonIgnore import ru.touchin.logger.context.LogExecutionContextData class LogData { val tags = mutableSetOf() + @JsonIgnore var error: Throwable? = null var duration: Long? = null