From a6796bbf7238fbc1ea1d8ec5074208a98e94d71b Mon Sep 17 00:00:00 2001 From: Ruben van Staveren Date: Mon, 16 Jan 2023 17:13:35 +0100 Subject: [PATCH] Provide a bit more information in the log why it failed --- jail2ban/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jail2ban/__init__.py b/jail2ban/__init__.py index a6fee1f..66aa24c 100644 --- a/jail2ban/__init__.py +++ b/jail2ban/__init__.py @@ -191,6 +191,8 @@ def create_app(): Show a json parsable error if the value is illegal ''' app.logger.fatal(error) + app.logger.fatal('stdout: %s', error.stderr) + app.logger.fatal('stderr: %s', error.stderr) return jsonify({'error': str(error)}), 500 @app.errorhandler(FileNotFoundError)