From eeb705fc2f7fa3ba4512d61bef91b5fc2220b43d Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Sun, 1 Nov 2015 23:29:22 +0100 Subject: [PATCH] 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. --- src/mod_http_upload.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod_http_upload.erl b/src/mod_http_upload.erl index 6356e6368..c88e768f2 100644 --- a/src/mod_http_upload.erl +++ b/src/mod_http_upload.erl @@ -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.