From 5350afb10a614ef2c819dfe622894b2f95f1d4d0 2017-02-03 11:57:10 From: Marcin Lulek Date: 2017-02-03 11:57:10 Subject: [PATCH] partitions: add some logging --- diff --git a/backend/src/appenlight/views/admin/partitions.py b/backend/src/appenlight/views/admin/partitions.py index 09e91b7..1abb29f 100644 --- a/backend/src/appenlight/views/admin/partitions.py +++ b/backend/src/appenlight/views/admin/partitions.py @@ -132,8 +132,10 @@ def partitions_remove(request): csrf_context=request) if form.validate(): for ix in form.data['es_index']: + log.warning('deleting ES partition: {}'.format(ix)) Datastores.es.delete_index(ix) for ix in form.data['pg_index']: + log.warning('deleting PG partition: {}'.format(ix)) stmt = sa.text('DROP TABLE %s CASCADE' % sa.text(ix)) session = DBSession() session.connection().execute(stmt)