From 0a9246c94de2b7de888e08bd111420b38a2bc0e0 Mon Sep 17 00:00:00 2001 From: Justin Hawkins Date: Thu, 27 Jun 2024 20:33:59 +0930 Subject: [PATCH] Remove some of the more egregious debugging --- streamdeck.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/streamdeck.go b/streamdeck.go index 05a50e4..b04e996 100644 --- a/streamdeck.go +++ b/streamdeck.go @@ -214,7 +214,7 @@ func (conn *Connection) reader() { func (conn *Connection) unmarshalToConcrete(t reflect.Type, b []byte) (any, error) { // t is a reflect.Type of the thing we need to decode into d := reflect.New(t).Interface() - conn.logger.Info(fmt.Sprintf("instance is a %T", d)) + // conn.logger.Info(fmt.Sprintf("instance is a %T", d)) err := json.Unmarshal(b, &d) if err != nil { @@ -223,8 +223,7 @@ func (conn *Connection) unmarshalToConcrete(t reflect.Type, b []byte) (any, erro // get concrete instance of d into v v := reflect.ValueOf(d).Elem().Interface() - conn.logger.Info(fmt.Sprintf("NOW instance is a %T", v)) - - conn.logger.Debug(fmt.Sprintf("reader: unmarshalled to: %+v", v)) + // conn.logger.Debug(fmt.Sprintf("NOW instance is a %T", v)) + // conn.logger.Debug(fmt.Sprintf("reader: unmarshalled to: %+v", v)) return v, nil }