mirror of
https://github.com/zoriya/flood.git
synced 2026-05-31 18:25:25 +00:00
Merge pull request #318 from jfurrow/cleanup/remove-console-info
Remove verbose messaging in HistoryEra
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
## [Unreleased]
|
||||
* Changed `/list/` route to `/overview/`
|
||||
* Reorganized and renamed component source files
|
||||
* Removed verbose logging from `HistoryEra`
|
||||
|
||||
## [1.0.0] (April 21, 2017)
|
||||
* First "official" release
|
||||
|
||||
@@ -134,9 +134,7 @@ class HistoryEra {
|
||||
removeOutdatedData(db) {
|
||||
if (this.opts.maxTime > 0) {
|
||||
let minTimestamp = Date.now() - this.opts.maxTime;
|
||||
db.remove({ts: {$lt: minTimestamp}}, {multi: true}, (err, numRemoved) => {
|
||||
console.error(`removed ${numRemoved} entries from ${this.opts.name}`)
|
||||
});
|
||||
db.remove({ts: {$lt: minTimestamp}}, {multi: true});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user