Skip to content

Commit

Permalink
merged in golang/protobuf commit b285ee9cfc6c881bb20c0d8dc73370ea9b9e…
Browse files Browse the repository at this point in the history
…c90f - Log parsing errors using log pkg
  • Loading branch information
jmarais committed Sep 8, 2019
1 parent 3f2ed6d commit d1969a7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions proto/properties.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ package proto
import (
"fmt"
"log"
"os"
"reflect"
"sort"
"strconv"
Expand Down Expand Up @@ -205,7 +204,7 @@ func (p *Properties) Parse(s string) {
// "bytes,49,opt,name=foo,def=hello!"
fields := strings.Split(s, ",") // breaks def=, but handled below.
if len(fields) < 2 {
fmt.Fprintf(os.Stderr, "proto: tag has too few fields: %q\n", s)
log.Printf("proto: tag has too few fields: %q", s)
return
}

Expand All @@ -225,7 +224,7 @@ func (p *Properties) Parse(s string) {
p.WireType = WireBytes
// no numeric converter for non-numeric types
default:
fmt.Fprintf(os.Stderr, "proto: tag has unknown wire type: %q\n", s)
log.Printf("proto: tag has unknown wire type: %q", s)
return
}

Expand Down

0 comments on commit d1969a7

Please sign in to comment.