less noise

This commit is contained in:
Sergey Chernov 2025-01-06 21:09:48 +03:00
parent 895193ba1c
commit e1a5873a0e
2 changed files with 1 additions and 4 deletions

View File

@ -10,7 +10,7 @@ plugins {
} }
group = "net.sergeych" group = "net.sergeych"
version = "0.5.2" version = "0.5.3"
repositories { repositories {
mavenCentral() mavenCentral()

View File

@ -6,7 +6,6 @@ import net.sergeych.mp_logger.LogTag
import net.sergeych.mp_logger.exception import net.sergeych.mp_logger.exception
import net.sergeych.mp_logger.info import net.sergeych.mp_logger.info
import net.sergeych.mptools.encodeToHex import net.sergeych.mptools.encodeToHex
import net.sergeych.mptools.toDump
import kotlin.reflect.KProperty import kotlin.reflect.KProperty
import kotlin.reflect.KType import kotlin.reflect.KType
import kotlin.reflect.typeOf import kotlin.reflect.typeOf
@ -92,7 +91,6 @@ class KVStorageDelegate<T>(
cachedValue = try { cachedValue = try {
info { " get ${name(property)}: ${type} [{${data.encodeToHex()}" } info { " get ${name(property)}: ${type} [{${data.encodeToHex()}" }
BossDecoder.decodeFrom<T>(type, data) BossDecoder.decodeFrom<T>(type, data)
.also { println("decoded as $it") }
} catch (e: Exception) { } catch (e: Exception) {
exception { "failed to decode ${name(property)}: ${type}" to e } exception { "failed to decode ${name(property)}: ${type}" to e }
defaultValue defaultValue
@ -105,7 +103,6 @@ class KVStorageDelegate<T>(
// if (!cacheReady || value != cachedValue) { // if (!cacheReady || value != cachedValue) {
cachedValue = value cachedValue = value
cacheReady = true cacheReady = true
println("set ${name(property)} to ${BossEncoder.encode(type, value).toDump()}")
storage[name(property)] = BossEncoder.encode(type, value) storage[name(property)] = BossEncoder.encode(type, value)
// } // }
} }