Skip to content

Commit

Permalink
Adjust verbosity levels of go2idl logging
Browse files Browse the repository at this point in the history
  • Loading branch information
tallclair committed Aug 5, 2016
1 parent f303588 commit 0c9318f
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion cmd/libs/go2idl/conversion-gen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,5 @@ func main() {
); err != nil {
glog.Fatalf("Error: %v", err)
}
glog.Info("Completed successfully.")
glog.V(2).Info("Completed successfully.")
}
2 changes: 1 addition & 1 deletion cmd/libs/go2idl/deepcopy-gen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,5 @@ func main() {
); err != nil {
glog.Fatalf("Error: %v", err)
}
glog.Info("Completed successfully.")
glog.V(2).Info("Completed successfully.")
}
6 changes: 3 additions & 3 deletions cmd/libs/go2idl/generator/execute.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ type DefaultFileType struct {
}

func (ft DefaultFileType) AssembleFile(f *File, pathname string) error {
glog.V(0).Infof("Assembling file %q", pathname)
glog.V(2).Infof("Assembling file %q", pathname)
destFile, err := os.Create(pathname)
if err != nil {
return err
Expand All @@ -91,7 +91,7 @@ func (ft DefaultFileType) AssembleFile(f *File, pathname string) error {
}

func (ft DefaultFileType) VerifyFile(f *File, pathname string) error {
glog.V(0).Infof("Verifying file %q", pathname)
glog.V(2).Infof("Verifying file %q", pathname)
friendlyName := filepath.Join(f.PackageName, f.Name)
b := &bytes.Buffer{}
et := NewErrorTracker(b)
Expand Down Expand Up @@ -211,7 +211,7 @@ func (c *Context) addNameSystems(namers namer.NameSystems) *Context {
// import path already, this will be appended to 'outDir'.
func (c *Context) ExecutePackage(outDir string, p Package) error {
path := filepath.Join(outDir, p.Path())
glog.V(0).Infof("Processing package %q, disk location %q", p.Name(), path)
glog.V(2).Infof("Processing package %q, disk location %q", p.Name(), path)
// Filter out any types the *package* doesn't care about.
packageContext := c.filteredBy(p.Filter)
os.MkdirAll(path, 0755)
Expand Down
4 changes: 2 additions & 2 deletions cmd/libs/go2idl/import-boss/generators/import_restrict.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ func (importRuleFile) VerifyFile(f *generator.File, path string) error {
}
found := false
for _, allowed := range r.AllowedPrefixes {
glog.V(0).Infof("Checking %v against %v\n", v, allowed)
glog.V(4).Infof("Checking %v against %v\n", v, allowed)
if strings.HasPrefix(v, allowed) {
found = true
break
Expand All @@ -226,7 +226,7 @@ func (importRuleFile) VerifyFile(f *generator.File, path string) error {
}
}
if len(rules.Rules) > 0 {
glog.V(0).Infof("%v passes rules found in %v\n", path, actualPath)
glog.V(2).Infof("%v passes rules found in %v\n", path, actualPath)
}

return nil
Expand Down
2 changes: 1 addition & 1 deletion cmd/libs/go2idl/import-boss/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,5 @@ func main() {
glog.Errorf("Error: %v", err)
os.Exit(1)
}
glog.Info("Completed successfully.")
glog.V(2).Info("Completed successfully.")
}
2 changes: 1 addition & 1 deletion cmd/libs/go2idl/set-gen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ func main() {
glog.Errorf("Error: %v", err)
os.Exit(1)
}
glog.Info("Completed successfully.")
glog.V(2).Info("Completed successfully.")
}

0 comments on commit 0c9318f

Please sign in to comment.