From 37e203d535b951d597f3dcd9dd25b4ada795d3e3 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Fri, 17 May 2019 09:32:46 +0200 Subject: [PATCH] mh_text: log message when skipping file with size over max --- src/internfile/mh_text.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/internfile/mh_text.cpp b/src/internfile/mh_text.cpp index d2197019..5dd0e8a7 100644 --- a/src/internfile/mh_text.cpp +++ b/src/internfile/mh_text.cpp @@ -81,6 +81,9 @@ bool MimeHandlerText::set_document_file_impl(const string& mt, const string &fn) m_pagesz = size_t(ps); if (!readnext()) return false; + } else { + LOGINF("MimeHandlerText: file too big (textfilemaxmbs=" << maxmbs << + "), contents will not be indexed: " << fn << endl); } if (!m_forPreview) { string md5, xmd5;