mirror of
https://github.com/Suwayomi/Tachidesk.git
synced 2025-12-10 06:42:07 +01:00
Fix/invalid server settings gql mutation request (#1092)
* Validate setting values on mutation * Handle invalid negative setting values * Ensure at least one source is downloading at all times * Prevent possible IllegalArgumentException The "serverConfig.maxSourcesInParallel" value could have changed after the if-condition
This commit is contained in:
@@ -60,7 +60,7 @@ private fun createRollingFileAppender(
|
||||
context = logContext
|
||||
setParent(appender)
|
||||
fileNamePattern = "$logDirPath/${logFilename}_%d{yyyy-MM-dd}_%i.log.gz"
|
||||
maxHistory = maxFiles
|
||||
maxHistory = maxFiles.coerceAtLeast(0)
|
||||
setMaxFileSize(fileSizeValueOfOrDefault(maxFileSize, "10mb"))
|
||||
setTotalSizeCap(fileSizeValueOfOrDefault(maxTotalSize, "100mb"))
|
||||
start()
|
||||
|
||||
Reference in New Issue
Block a user