(maxLogSize int64)
| 379 | } |
| 380 | |
| 381 | func GetMaxLogChangeInterval(maxLogSize int64) int64 { |
| 382 | if maxLogSize != 0 { |
| 383 | return (maxLogSize * BYTE_TO_MB) |
| 384 | } else { |
| 385 | return (DEFAULT_MAX_LOG_SIZE * BYTE_TO_MB) |
| 386 | } |
| 387 | } |
| 388 | |
| 389 | func CheckIfNeedNewFile() bool { |
| 390 | logFileSize, err := GetLogFileSize() |
no outgoing calls
no test coverage detected