remove old stdout junk

This commit is contained in:
Jeff Carr 2024-11-07 02:25:31 -06:00
parent 3ce9f5f773
commit 6b1330d7f3
1 changed files with 1 additions and 4 deletions

View File

@ -62,7 +62,6 @@ func (rs *RepoStatus) IsPrimitive() bool {
} }
func (rs *RepoStatus) IsProtobuf() (bool, []string, error) { func (rs *RepoStatus) IsProtobuf() (bool, []string, error) {
log.Info("are there .proto files in:", rs.Path())
fullp, fullc, err := ScanForProtobuf(rs.Path()) fullp, fullc, err := ScanForProtobuf(rs.Path())
protos := make(map[string]string) protos := make(map[string]string)
protoc := make(map[string]string) protoc := make(map[string]string)
@ -71,7 +70,6 @@ func (rs *RepoStatus) IsProtobuf() (bool, []string, error) {
for _, s := range fullp { for _, s := range fullp {
filebase := filepath.Base(s) filebase := filepath.Base(s)
name := strings.TrimSuffix(filebase, ".proto") name := strings.TrimSuffix(filebase, ".proto")
// log.Info("found i, s:", i, name, filebase)
anyfound = true anyfound = true
protos[name] = s protos[name] = s
} }
@ -80,7 +78,6 @@ func (rs *RepoStatus) IsProtobuf() (bool, []string, error) {
for _, s := range fullc { for _, s := range fullc {
cfilebase := filepath.Base(s) cfilebase := filepath.Base(s)
cname := strings.TrimSuffix(cfilebase, ".pb.go") cname := strings.TrimSuffix(cfilebase, ".pb.go")
// log.Info("found compiled i, s:", i, cname, cfilebase)
protoc[cname] = s protoc[cname] = s
if cname == pname { if cname == pname {
found = true found = true
@ -90,7 +87,7 @@ func (rs *RepoStatus) IsProtobuf() (bool, []string, error) {
if found { if found {
// log.Info("found ok") // log.Info("found ok")
} else { } else {
log.Info("not found") log.Info("missing compiled proto file:", pname + "pb.go")
err = errors.New("compiled file " + pname + ".pb.go missing") err = errors.New("compiled file " + pname + ".pb.go missing")
} }
} }