MCPcopy Create free account
hub / github.com/DNAProject/DNA / CheckIfNeedNewFile

Function CheckIfNeedNewFile

common/log/log.go:389–400  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

387}
388
389func CheckIfNeedNewFile() bool {
390 logFileSize, err := GetLogFileSize()
391 maxLogFileSize := GetMaxLogChangeInterval(0)
392 if err != nil {
393 return false
394 }
395 if logFileSize > maxLogFileSize {
396 return true
397 } else {
398 return false
399 }
400}
401
402func ClosePrintLog() error {
403 var err error

Callers 1

TestNewLogFileFunction · 0.85

Calls 2

GetLogFileSizeFunction · 0.85
GetMaxLogChangeIntervalFunction · 0.85

Tested by 1

TestNewLogFileFunction · 0.68