Skip to content

Commit

Permalink
Limit max number of log files kept for #219 -- So far we haven't had …
Browse files Browse the repository at this point in the history
…any use cases for historical logs for debugging, so this probably isn't needed
  • Loading branch information
ddworken committed Aug 25, 2024
1 parent 9b7d7c5 commit 24f69ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/hctx/hctx.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func GetLogger() *logrus.Logger {
lumberjackLogger := &lumberjack.Logger{
Filename: path.Join(homedir, data.GetHishtoryPath(), "hishtory.log"),
MaxSize: 1, // MB
MaxBackups: 10,
MaxBackups: 1,
MaxAge: 30, // days
}

Expand Down

0 comments on commit 24f69ca

Please sign in to comment.