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

refactor: updated default logFileMaxAge and logFileMaxBackups #1221

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ docker exec -it razor-go razor setConfig --provider <rpc_provider> --alternatePr
Example:

```
$ ./razor setConfig --provider https://mainnet.skalenodes.com/v1/turbulent-unique-scheat --alternateProvider https://ce2m-skale.chainode.tech:10200/ --gasmultiplier 1 --buffer 20 --wait 30 --gasprice 0 --logLevel debug --gasLimit 2 --rpcTimeout 10 --httpTimeout 10 --logFileMaxSize 200 --logFileMaxBackups 52 --logFileMaxAge 365
$ ./razor setConfig --provider https://mainnet.skalenodes.com/v1/turbulent-unique-scheat --alternateProvider https://ce2m-skale.chainode.tech:10200/ --gasmultiplier 1 --buffer 20 --wait 30 --gasprice 0 --logLevel debug --gasLimit 2 --rpcTimeout 10 --httpTimeout 10 --logFileMaxSize 200 --logFileMaxBackups 10 --logFileMaxAge 60
```

Besides, setting these parameters in the config, you can use different values for these parameters in various commands. Just add the same flag to any command you want to use and the new config changes will appear for that command.
Expand Down
8 changes: 4 additions & 4 deletions config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ if [ -z "$MAX_SIZE" ]; then
MAX_SIZE=200
fi

read -rp "Log Files Max Backups: (52) " MAX_BACKUPS
read -rp "Log Files Max Backups: (10) " MAX_BACKUPS
if [ -z "$MAX_BACKUPS" ]; then
MAX_BACKUPS=52
MAX_BACKUPS=10
fi

read -rp "Log Files Max Age: (365) " MAX_AGE
read -rp "Log Files Max Age: (60) " MAX_AGE
if [ -z "$MAX_AGE" ]; then
MAX_AGE=365
MAX_AGE=60
fi

ALT_PROVIDER_OPTION=""
Expand Down
4 changes: 2 additions & 2 deletions core/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ const BufferStateSleepTime int32 = 2
//Following are the default logFile parameters in config
const (
DefaultLogFileMaxSize = 200
DefaultLogFileMaxBackups = 52
DefaultLogFileMaxAge = 365
DefaultLogFileMaxBackups = 10
DefaultLogFileMaxAge = 60
)

//DisputeGasMultiplier is a constant gasLimitMultiplier to increase gas Limit for function `disputeCollectionIdShouldBeAbsent` and `disputeCollectionIdShouldBePresent`
Expand Down
Loading