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:
Holger Weiss 2015-11-01 23:29:22 +01:00
parent 0b4e0e720e
commit d46ee127e7
1 changed files with 1 additions and 1 deletions

View File

@ -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.