Remove some of the more egregious debugging
This commit is contained in:
parent
688cfd951b
commit
0a9246c94d
@ -214,7 +214,7 @@ func (conn *Connection) reader() {
|
|||||||
func (conn *Connection) unmarshalToConcrete(t reflect.Type, b []byte) (any, error) {
|
func (conn *Connection) unmarshalToConcrete(t reflect.Type, b []byte) (any, error) {
|
||||||
// t is a reflect.Type of the thing we need to decode into
|
// t is a reflect.Type of the thing we need to decode into
|
||||||
d := reflect.New(t).Interface()
|
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)
|
err := json.Unmarshal(b, &d)
|
||||||
if err != nil {
|
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
|
// get concrete instance of d into v
|
||||||
v := reflect.ValueOf(d).Elem().Interface()
|
v := reflect.ValueOf(d).Elem().Interface()
|
||||||
conn.logger.Info(fmt.Sprintf("NOW instance is a %T", v))
|
// conn.logger.Debug(fmt.Sprintf("NOW instance is a %T", v))
|
||||||
|
// conn.logger.Debug(fmt.Sprintf("reader: unmarshalled to: %+v", v))
|
||||||
conn.logger.Debug(fmt.Sprintf("reader: unmarshalled to: %+v", v))
|
|
||||||
return v, nil
|
return v, nil
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user