Skip to content

Commit

Permalink
fix: rename class name to HourRotator (#29)
Browse files Browse the repository at this point in the history
this file is Hour Rotator not day Rotator

[skip ci]
  • Loading branch information
kaidiren authored Feb 2, 2025
1 parent 73690a8 commit 3863a39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/lib/hour_rotator.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const Rotator = require('./rotator');

// rotate log by hour
// rename from foo.log to foo.log.YYYY-MM-DD-HH
class DayRotator extends Rotator {
class HourRotator extends Rotator {

async getRotateFiles() {
const files = new Map();
Expand Down Expand Up @@ -43,4 +43,4 @@ class DayRotator extends Rotator {
}
}

module.exports = DayRotator;
module.exports = HourRotator;

0 comments on commit 3863a39

Please sign in to comment.