Skip to content

Commit

Permalink
Merge pull request #22 from coocood/log-level
Browse files Browse the repository at this point in the history
adjust log level
  • Loading branch information
ngaut authored Jul 2, 2018
2 parents f022305 + c1e500d commit c1fefd7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions db.go
Original file line number Diff line number Diff line change
Expand Up @@ -557,15 +557,14 @@ func (db *DB) writeRequests(reqs []*request) error {
}
}

log.Infof("writeRequests called. Writing to value log")
log.Debugf("writeRequests called. Writing to value log")

err := db.vlog.write(reqs)
if err != nil {
done(err)
return err
}

log.Infof("Writing to memtable")
var count int
for _, b := range reqs {
if len(b.Entries) == 0 {
Expand Down Expand Up @@ -594,7 +593,7 @@ func (db *DB) writeRequests(reqs []*request) error {
db.updateOffset(b.Ptrs)
}
done(nil)
log.Infof("%d entries written", count)
log.Debugf("%d entries written", count)
return nil
}

Expand Down

0 comments on commit c1fefd7

Please sign in to comment.