Skip to content

Commit

Permalink
pgsql: Remove unnecessary logs
Browse files Browse the repository at this point in the history
  • Loading branch information
KeyboardNerd committed Feb 22, 2019
1 parent 2661349 commit 9c73243
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions database/pgsql/ancestry.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ func (tx *pgSession) insertAncestry(name string) (int64, error) {
return 0, handleError("insertAncestry", err)
}

log.WithFields(log.Fields{"ancestry": name, "id": id}).Debug("database: inserted ancestry")
return id, nil
}

Expand Down Expand Up @@ -176,7 +175,6 @@ func (tx *pgSession) findAncestryLayers(id int64) ([]database.AncestryLayer, err
return nil, err
}

log.WithField("map", layerMap).Debug("found layer hashes")
featureMap, err := tx.findAncestryFeatures(id, detectors)
if err != nil {
return nil, err
Expand Down
2 changes: 0 additions & 2 deletions database/pgsql/detector.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,11 @@ func (tx *pgSession) insertAncestryDetectors(ancestryID int64, detectorIDs []int

func (tx *pgSession) findAncestryDetectors(id int64) ([]database.Detector, error) {
detectors, err := tx.getDetectors(selectAncestryDetectors, id)
log.WithField("detectors", detectors).Debug("found ancestry detectors")
return detectors, err
}

func (tx *pgSession) findLayerDetectors(id int64) ([]database.Detector, error) {
detectors, err := tx.getDetectors(selectLayerDetectors, id)
log.WithField("detectors", detectors).Debug("found layer detectors")
return detectors, err
}

Expand Down

0 comments on commit 9c73243

Please sign in to comment.