Skip to content

Commit

Permalink
replace 'glog' with 'klog'
Browse files Browse the repository at this point in the history
  • Loading branch information
eloyekunle committed Sep 28, 2019
1 parent 5c9e6c0 commit bae7477
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/import-boss/generators/import_restrict.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,18 +327,18 @@ func (irf importRuleFile) verifyInverseRules(restrictionFiles []*fileFormat, f *

re := selectors[i][j]
matching := re.MatchString(v)
glog.V(4).Infof("Checking %v matches %v (importing %v: %v\n", r.SelectorRegexp, v, f.PackagePath, matching)
klog.V(4).Infof("Checking %v matches %v (importing %v: %v\n", r.SelectorRegexp, v, f.PackagePath, matching)
if !matching {
continue
}
for _, forbidden := range r.ForbiddenPrefixes {
glog.V(4).Infof("Checking %v against %v\n", v, forbidden)
klog.V(4).Infof("Checking %v against %v\n", v, forbidden)
if strings.HasPrefix(v, forbidden) {
return fmt.Errorf("%v importing %v is forbidden by %v", v, f.PackagePath, restrictionFiles[i].path)
}
}
for _, allowed := range r.AllowedPrefixes {
glog.V(4).Infof("Checking %v against %v\n", v, allowed)
klog.V(4).Infof("Checking %v against %v\n", v, allowed)
if strings.HasPrefix(v, allowed) {
explicitlyAllowed = true
break
Expand All @@ -348,7 +348,7 @@ func (irf importRuleFile) verifyInverseRules(restrictionFiles []*fileFormat, f *
return fmt.Errorf("%v importing %v is not allowed by %v", v, f.PackagePath, restrictionFiles[i].path)
}

glog.V(2).Infof("%v importing %v allowed by %v\n", v, f.PackagePath, restrictionFiles[i].path)
klog.V(2).Infof("%v importing %v allowed by %v\n", v, f.PackagePath, restrictionFiles[i].path)
break NextRestrictionFiles
}
}
Expand Down

0 comments on commit bae7477

Please sign in to comment.