Skip to content

Commit

Permalink
add logging to csv upload (apache#6297)
Browse files Browse the repository at this point in the history
  • Loading branch information
timifasubaa authored and bipinsoniguavus committed Dec 24, 2018
1 parent d2514fa commit 55fce1c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions superset/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ def form_post(self, form):
flash(
message,
'danger')
stats_logger.incr('failed_csv_upload')
return redirect('/csvtodatabaseview/form')

os.remove(path)
Expand All @@ -378,6 +379,7 @@ def form_post(self, form):
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):
Expand Down

0 comments on commit 55fce1c

Please sign in to comment.