Skip to content

Commit

Permalink
database/worker: Remove useless log message
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin-M committed Nov 16, 2015
1 parent 9a3bea8 commit f229083
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion database/package.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,6 @@ func FindOnePackage(OS, name string, version types.Version, selectedFields []str
// FindAllPackagesByNodes finds and returns all packages given by their nodes, selecting the specified fields
func FindAllPackagesByNodes(nodes []string, selectedFields []string) ([]*Package, error) {
if len(nodes) == 0 {
log.Warning("could not FindAllPackagesByNodes with an empty nodes array.")
return []*Package{}, nil
}

Expand Down
8 changes: 6 additions & 2 deletions worker/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ import (
"os"
"strings"

"github.com/coreos/pkg/capnslog"
"github.com/coreos/clair/database"
"github.com/coreos/clair/utils"
cerrors "github.com/coreos/clair/utils/errors"
"github.com/coreos/clair/worker/detectors"
"github.com/coreos/pkg/capnslog"
)

const (
Expand Down Expand Up @@ -125,7 +125,11 @@ func detectContent(ID, path string, parent *database.Layer) (OS string, installe
if err != nil {
return
}
log.Debugf("layer %s: OS is %s.", ID, OS)
if OS != "" {
log.Debugf("layer %s: OS is %s.", ID, OS)
} else {
log.Debugf("layer %s: OS is unknown.", ID)
}

packageList, err := detectors.DetectPackages(data)
if err != nil {
Expand Down

0 comments on commit f229083

Please sign in to comment.