Skip to content

Commit

Permalink
chore:Output error conversion log
Browse files Browse the repository at this point in the history
  • Loading branch information
taolx0 committed Mar 19, 2024
1 parent 70e6799 commit 28769ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sqle/utils/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (
"unicode/utf8"
"unsafe"

"github.com/actiontech/sqle/sqle/log"
"github.com/bwmarrin/snowflake"
"golang.org/x/text/encoding/simplifiedchinese"
"golang.org/x/text/transform"
Expand Down Expand Up @@ -338,6 +339,7 @@ func ConvertToUtf8(in []byte) ([]byte, error) {
if err == nil {
return out, nil
}
log.NewEntry().Errorf("ConvertToUtf8 failed: %v", err)
}

return nil, ErrUnknownEncoding
Expand Down

0 comments on commit 28769ad

Please sign in to comment.