##// END OF EJS Templates
partitions: add some logging
ergo -
Show More
@@ -132,8 +132,10 b' def partitions_remove(request):'
132 csrf_context=request)
132 csrf_context=request)
133 if form.validate():
133 if form.validate():
134 for ix in form.data['es_index']:
134 for ix in form.data['es_index']:
135 log.warning('deleting ES partition: {}'.format(ix))
135 Datastores.es.delete_index(ix)
136 Datastores.es.delete_index(ix)
136 for ix in form.data['pg_index']:
137 for ix in form.data['pg_index']:
138 log.warning('deleting PG partition: {}'.format(ix))
137 stmt = sa.text('DROP TABLE %s CASCADE' % sa.text(ix))
139 stmt = sa.text('DROP TABLE %s CASCADE' % sa.text(ix))
138 session = DBSession()
140 session = DBSession()
139 session.connection().execute(stmt)
141 session.connection().execute(stmt)
General Comments 0
You need to be logged in to leave comments. Login now