From be4e04f774f779965e3fefea21995a4c9337af4e Mon Sep 17 00:00:00 2001 From: adrin jalali Date: Fri, 23 Mar 2018 14:59:26 +0100 Subject: [PATCH] print active readers when no content is found --- pelican/__init__.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pelican/__init__.py b/pelican/__init__.py index 94012e70..c6959105 100644 --- a/pelican/__init__.py +++ b/pelican/__init__.py @@ -467,7 +467,11 @@ def main(): ', '.join(k for k, v in modified.items() if v))) if modified['content'] is None: - logger.warning('No valid files found in content.') + logger.warning('No valid files found in content for the active readers:') + for k, v in readers.readers.items(): + if v.enabled: + logger.warning(' | %s (%s)' % (type(v).__name__, + ', '.join(v.file_extensions))) if modified['theme'] is None: logger.warning('Empty theme folder. Using `basic` ' @@ -490,7 +494,11 @@ def main(): else: if next(watchers['content']) is None: - logger.warning('No valid files found in content.') + logger.warning('No valid files found in content for the active readers:') + for k, v in readers.readers.items(): + if v.enabled: + logger.warning(' | %s (%s)' % (type(v).__name__, + ', '.join(v.file_extensions))) if next(watchers['theme']) is None: logger.warning('Empty theme folder. Using `basic` theme.')