less noise
This commit is contained in:
		
							parent
							
								
									895193ba1c
								
							
						
					
					
						commit
						e1a5873a0e
					
				@ -10,7 +10,7 @@ plugins {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
group = "net.sergeych"
 | 
			
		||||
version = "0.5.2"
 | 
			
		||||
version = "0.5.3"
 | 
			
		||||
 | 
			
		||||
repositories {
 | 
			
		||||
    mavenCentral()
 | 
			
		||||
 | 
			
		||||
@ -6,7 +6,6 @@ import net.sergeych.mp_logger.LogTag
 | 
			
		||||
import net.sergeych.mp_logger.exception
 | 
			
		||||
import net.sergeych.mp_logger.info
 | 
			
		||||
import net.sergeych.mptools.encodeToHex
 | 
			
		||||
import net.sergeych.mptools.toDump
 | 
			
		||||
import kotlin.reflect.KProperty
 | 
			
		||||
import kotlin.reflect.KType
 | 
			
		||||
import kotlin.reflect.typeOf
 | 
			
		||||
@ -92,7 +91,6 @@ class KVStorageDelegate<T>(
 | 
			
		||||
            cachedValue = try {
 | 
			
		||||
                info { " get ${name(property)}: ${type} [{${data.encodeToHex()}" }
 | 
			
		||||
                BossDecoder.decodeFrom<T>(type, data)
 | 
			
		||||
                    .also { println("decoded as $it") }
 | 
			
		||||
            } catch (e: Exception) {
 | 
			
		||||
                exception {  "failed to decode ${name(property)}: ${type}" to e }
 | 
			
		||||
                defaultValue
 | 
			
		||||
@ -105,7 +103,6 @@ class KVStorageDelegate<T>(
 | 
			
		||||
//        if (!cacheReady || value != cachedValue) {
 | 
			
		||||
        cachedValue = value
 | 
			
		||||
        cacheReady = true
 | 
			
		||||
        println("set ${name(property)} to ${BossEncoder.encode(type, value).toDump()}")
 | 
			
		||||
        storage[name(property)] = BossEncoder.encode(type, value)
 | 
			
		||||
//        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user