mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-07-03 11:22:30 +00:00
Increase log files sizes (#1374)
This commit is contained in:
parent
79c5d4595e
commit
82d95c59a3
@ -159,7 +159,8 @@ var subsystemLoggers = map[string]*Logger{
|
|||||||
|
|
||||||
// InitLog attaches log file and error log file to the backend log.
|
// InitLog attaches log file and error log file to the backend log.
|
||||||
func InitLog(logFile, errLogFile string) {
|
func InitLog(logFile, errLogFile string) {
|
||||||
err := BackendLog.AddLogFileWithCustomRotator(logFile, LevelTrace, 100*1024, 4)
|
// 250 MB (MB=1000^2 bytes)
|
||||||
|
err := BackendLog.AddLogFileWithCustomRotator(logFile, LevelTrace, 1000*250, 32)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Fprintf(os.Stderr, "Error adding log file %s as log rotator for level %s: %s", logFile, LevelTrace, err)
|
fmt.Fprintf(os.Stderr, "Error adding log file %s as log rotator for level %s: %s", logFile, LevelTrace, err)
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user