Skip to content

Commit

Permalink
Fix debug log (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
masahiro331 authored and knqyf263 committed May 31, 2019
1 parent a9ff0b5 commit f12284a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/scanner/ospkg/debian/debian.go
Expand Up @@ -30,7 +30,7 @@ func (s *Scanner) Detect(osVer string, pkgs []analyzer.Package) ([]vulnerability
osVer = osVer[:strings.Index(osVer, ".")]
}
log.Logger.Debugf("debian: os version: %s", osVer)
log.Logger.Debugf("debian: the number of packages: %s", len(pkgs))
log.Logger.Debugf("debian: the number of packages: %d", len(pkgs))

var vulns []vulnerability.DetectedVulnerability
for _, pkg := range pkgs {
Expand Down
2 changes: 1 addition & 1 deletion pkg/scanner/ospkg/redhat/redhat.go
Expand Up @@ -24,7 +24,7 @@ func (s *Scanner) Detect(osVer string, pkgs []analyzer.Package) ([]vulnerability
osVer = osVer[:strings.Index(osVer, ".")]
}
log.Logger.Debugf("redhat: os version: %s", osVer)
log.Logger.Debugf("redhat: the number of packages: %s", len(pkgs))
log.Logger.Debugf("redhat: the number of packages: %d", len(pkgs))

var vulns []vulnerability.DetectedVulnerability
for _, pkg := range pkgs {
Expand Down
2 changes: 1 addition & 1 deletion pkg/scanner/ospkg/ubuntu/ubuntu.go
Expand Up @@ -20,7 +20,7 @@ func NewScanner() *Scanner {
func (s *Scanner) Detect(osVer string, pkgs []analyzer.Package) ([]vulnerability.DetectedVulnerability, error) {
log.Logger.Info("Detecting Ubuntu vulnerabilities...")
log.Logger.Debugf("ubuntu: os version: %s", osVer)
log.Logger.Debugf("ubuntu: the number of packages: %s", len(pkgs))
log.Logger.Debugf("ubuntu: the number of packages: %d", len(pkgs))

var vulns []vulnerability.DetectedVulnerability
for _, pkg := range pkgs {
Expand Down

0 comments on commit f12284a

Please sign in to comment.