1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-02-07 11:36:25 +02:00

Don't fail on recursive preset usage, just ignore used preset and log warning

This commit is contained in:
DarthSim 2019-05-07 15:19:23 +06:00
parent 0cfeab65db
commit c0c471ac99

View File

@ -522,7 +522,8 @@ func applyPresetOption(po *processingOptions, args []string) error {
for _, preset := range args {
if p, ok := conf.Presets[preset]; ok {
if po.isPresetUsed(preset) {
return fmt.Errorf("Recursive preset usage is detected: %s", preset)
logWarning("Recursive preset usage is detected: %s", preset)
continue
}
po.presetUsed(preset)