mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
add lumberjack log rotation (#5696)
* [logging] add UI and graphql for maximum log size * [logger] set default size to 0MB and don't rotate
This commit is contained in:
@@ -334,6 +334,10 @@ func (r *mutationResolver) ConfigureGeneral(ctx context.Context, input ConfigGen
|
||||
logger.SetLogLevel(*input.LogLevel)
|
||||
}
|
||||
|
||||
if input.LogFileMaxSize != nil && *input.LogFileMaxSize != c.GetLogFileMaxSize() {
|
||||
c.SetInt(config.LogFileMaxSize, *input.LogFileMaxSize)
|
||||
}
|
||||
|
||||
if input.Excludes != nil {
|
||||
for _, r := range input.Excludes {
|
||||
_, err := regexp.Compile(r)
|
||||
|
||||
Reference in New Issue
Block a user