mod_http_upload: Suppress error on non-image files
Don't log an error (but only a debug) message if ImageMagick fails to indentify the file type for thumbnail creation. The image might be encrypted, or it could be a non-image file.
This commit is contained in:
parent
0b4e0e720e
commit
d46ee127e7
|
@ -856,7 +856,7 @@ identify(Path) ->
|
||||||
height = list_to_integer(H),
|
height = list_to_integer(H),
|
||||||
width = list_to_integer(W)}};
|
width = list_to_integer(W)}};
|
||||||
_ ->
|
_ ->
|
||||||
?ERROR_MSG("failed to identify type of ~s: ~s", [Path, Res]),
|
?DEBUG("failed to identify type of ~s: ~s", [Path, Res]),
|
||||||
{error, Res}
|
{error, Res}
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue