From 80651a5dc22fe784b4abcec69a365a1568fe8457 Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Fri, 12 Feb 2016 00:32:15 -0800 Subject: [PATCH] More logging --- panoramix/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/panoramix/views.py b/panoramix/views.py index 52a5fa43579a8..221a33174f5e3 100644 --- a/panoramix/views.py +++ b/panoramix/views.py @@ -658,8 +658,10 @@ def refresh_datasources(self): cluster.refresh_datasources() except Exception as e: flash( - "Error while processing cluster '{}'".format(cluster), + "Error while processing cluster '{}'\n{}".format( + cluster, str(e)), "danger") + logging.exception(e) return redirect('/druidclustermodelview/list/') cluster.metadata_last_refreshed = datetime.now() flash(