Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rotate log file: 0chainBlobber-sdk.log #1302

Closed
boddumanohar opened this issue Oct 21, 2023 · 0 comments
Closed

rotate log file: 0chainBlobber-sdk.log #1302

boddumanohar opened this issue Oct 21, 2023 · 0 comments
Assignees

Comments

@boddumanohar
Copy link
Contributor

boddumanohar commented Oct 21, 2023

currently blobber generates 2 log files:

  1. 0chainBlobber.log
  2. 0chainBlobber-sdk.log

The first one is rotated as per the configuration defined here:

func getWriteSyncer(logName string) zapcore.WriteSyncer {
var ioWriter = &lumberjack.Logger{
Filename: logName,
MaxSize: 10, // MB
MaxBackups: 3, // number of backups
MaxAge: 28, //days
LocalTime: true,
Compress: false, // disabled by default
}
_ = ioWriter.Rotate()
return zapcore.AddSync(ioWriter)
}

But the other one is not rotated and it keeps growing very quickly. Around 200 MB per day.

Screenshot 2023-10-21 at 19 10 36

The goal is to configure some setting to rotate the file 0chainBlobber-sdk.log so that we can deterministic about storage

@guruhubb guruhubb assigned Hitenjain14 and dabasov and unassigned Hitenjain14 Oct 24, 2023
@dabasov dabasov closed this as completed Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants