From ff467382188c358e730dcb24adb5b154dc283ec7 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Tue, 3 Nov 2015 00:00:44 +0100 Subject: [PATCH] mod_http_upload_quota: Omit info message The mod_http_upload_quota module attempts to delete a directory whenever it removes a file from that directory. However, if thumbnail creation is enabled, directories will often contain two files. Therefore, don't log an info (but only a debug) message if directory removal fails. --- src/mod_http_upload_quota.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod_http_upload_quota.erl b/src/mod_http_upload_quota.erl index 6ff8c840b..7d8ff103a 100644 --- a/src/mod_http_upload_quota.erl +++ b/src/mod_http_upload_quota.erl @@ -332,7 +332,7 @@ del_file_and_dir(File) -> ok -> ?DEBUG("Removed ~s", [Dir]); {error, Error} -> - ?INFO_MSG("Cannot remove ~s: ~s", [Dir, ?FORMAT(Error)]) + ?DEBUG("Cannot remove ~s: ~s", [Dir, ?FORMAT(Error)]) end; {error, Error} -> ?WARNING_MSG("Cannot remove ~s: ~s", [File, ?FORMAT(Error)])