Skip to content

Commit

Permalink
remove logging on failed smile header decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
angad-z committed Apr 11, 2023
1 parent b63cdbc commit b6efecd
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions smile/smile.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
package smile

import (
"encoding/base64"
"encoding/json"

"log"

"github.com/gocollection/go-smile/decode"
"github.com/gocollection/go-smile/domain"
)
Expand All @@ -27,10 +24,6 @@ func DecodeToJSON(smile []byte) (string, error) {
func DecodeToObject(smile []byte) (interface{}, error) {
header, err := domain.DecodeHeader(smile)
if err != nil {
log.Printf(
"[go-smile] error decoding bytes. err: %s; base64-string: %s",
err.Error(), base64.StdEncoding.EncodeToString(smile),
)
return "", err
}

Expand Down

0 comments on commit b6efecd

Please sign in to comment.