From 3f74c450c37046cdd04c515e0797084a01426a80 Mon Sep 17 00:00:00 2001 From: drebs Date: Fri, 19 Aug 2016 14:33:50 -0300 Subject: [pkg] log any errors in couch schema migration script --- scripts/migration/0.8.2/migrate.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'scripts/migration') diff --git a/scripts/migration/0.8.2/migrate.py b/scripts/migration/0.8.2/migrate.py index fe612221..c9c8a9a0 100755 --- a/scripts/migration/0.8.2/migrate.py +++ b/scripts/migration/0.8.2/migrate.py @@ -103,4 +103,9 @@ if __name__ == '__main__': if args.pdb: _enable_pdb() _configure_logger(args.log_file) - migrate(args, TARGET_VERSION) + logger = logging.getLogger(__name__) + try: + migrate(args, TARGET_VERSION) + except: + logger.exception('Fatal error on migrate script!') + raise -- cgit v1.2.3