This is an automated email from the ASF dual-hosted git repository.

timi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 77845ab  add logging to csv upload (#6297)
77845ab is described below

commit 77845ab081e26b5880ae50d82b298b2de98990b8
Author: timifasubaa <30888507+timifasu...@users.noreply.github.com>
AuthorDate: Wed Nov 7 18:40:07 2018 -0800

    add logging to csv upload (#6297)
---
 superset/views/core.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/superset/views/core.py b/superset/views/core.py
index b53ad6f..eb1d8d3 100755
--- a/superset/views/core.py
+++ b/superset/views/core.py
@@ -368,6 +368,7 @@ class CsvToDatabaseView(SimpleFormView):
             flash(
                 message,
                 'danger')
+            stats_logger.incr('failed_csv_upload')
             return redirect('/csvtodatabaseview/form')
 
         os.remove(path)
@@ -378,6 +379,7 @@ class CsvToDatabaseView(SimpleFormView):
                                             form.name.data,
                                             db_name))
         flash(message, 'info')
+        stats_logger.incr('successful_csv_upload')
         return redirect('/tablemodelview/list/')
 
     def is_schema_allowed(self, database, schema):

Reply via email to