mirror of
https://github.com/processone/ejabberd.git
synced 2024-09-27 14:30:55 +02:00
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. Closes #809.
This commit is contained in:
parent
8bff06bea9
commit
eeb705fc2f
@ -856,7 +856,7 @@ identify(Path) ->
|
||||
height = list_to_integer(H),
|
||||
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}
|
||||
end.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user