Limit max number of log files kept for #219 -- So far we haven't had any use cases for historical logs for debugging, so this probably isn't needed

This commit is contained in:
David Dworken 2024-08-25 15:16:09 -07:00
parent 9b7d7c57b5
commit 24f69ca29d
No known key found for this signature in database

View File

@ -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
}