File tree 2 files changed +15
-14
lines changed
lambda-runtime/src/commonMain/kotlin/io/github/trueangle/knative/lambda/runtime/log
2 files changed +15
-14
lines changed Original file line number Diff line number Diff line change 1
1
[versions ]
2
2
junit = " 4.13.2"
3
- kotlin = " 2.0.20 "
4
- coroutinest-test = " 1.9.0-RC "
5
- ktor = " 3.0.0-rc-1 "
6
- serialization = " 1.6.3 "
7
- logback = " 1.5.6 "
8
- io = " 0.5.1 "
9
- date-time = " 0.6.0 "
10
- ksp = " 2.0 .10-1.0.24 "
11
- allopen = " 2.0.20 "
12
- mokkery = " 2.3.0 "
13
- kotlinx-resources = " 0.9 .0"
14
- gradle-publish = " 1.2 .0"
3
+ kotlin = " 2.1.10 "
4
+ coroutinest-test = " 1.10.1 "
5
+ ktor = " 3.1.0 "
6
+ serialization = " 1.8.0 "
7
+ logback = " 1.5.16 "
8
+ io = " 0.6.0 "
9
+ date-time = " 0.6.2 "
10
+ ksp = " 2.1 .10-1.0.30 "
11
+ allopen = " 2.1.0 "
12
+ mokkery = " 2.6.1 "
13
+ kotlinx-resources = " 0.10 .0"
14
+ gradle-publish = " 1.3 .0"
15
15
trueangle-lambda = " 0.0.1"
16
16
17
17
[libraries ]
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import io.github.trueangle.knative.lambda.runtime.asSerialObject
6
6
import io.ktor.util.reflect.TypeInfo
7
7
import kotlinx.datetime.Clock
8
8
import kotlinx.serialization.SerializationException
9
- import kotlinx.serialization.encodeToString
10
9
import kotlinx.serialization.json.Json
11
10
import kotlinx.serialization.serializer
12
11
@@ -28,7 +27,9 @@ internal class JsonLogFormatter(
28
27
)
29
28
)
30
29
} else {
31
- val messageSerializer = serializer(messageType.reifiedType)
30
+ val messageSerializer = serializer(
31
+ messageType.kotlinType ? : throw SerializationException (" Missing KType" )
32
+ )
32
33
val dtoSerializer = LogMessageDto .serializer(messageSerializer)
33
34
34
35
json.encodeToString(
You can’t perform that action at this time.
0 commit comments