From d46ee127e7d66f2878c2480ecbf7cb6d8d778ed6 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. --- mod_http_upload/src/mod_http_upload.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod_http_upload/src/mod_http_upload.erl b/mod_http_upload/src/mod_http_upload.erl index 41b8841..6c086f6 100644 --- a/mod_http_upload/src/mod_http_upload.erl +++ b/mod_http_upload/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.