diff options
author | drebs <drebs@leap.se> | 2016-08-19 14:33:50 -0300 |
---|---|---|
committer | drebs <drebs@leap.se> | 2016-08-23 18:48:27 -0300 |
commit | 3f74c450c37046cdd04c515e0797084a01426a80 (patch) | |
tree | c0231b2bbda9034431eab171e9e2218f91e316cc /scripts/migration/0.8.2/migrate.py | |
parent | 2025916a1c4d4518e714086e2144be0e83c95d9e (diff) |
[pkg] log any errors in couch schema migration script
Diffstat (limited to 'scripts/migration/0.8.2/migrate.py')
-rwxr-xr-x | scripts/migration/0.8.2/migrate.py | 7 |
1 files changed, 6 insertions, 1 deletions
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 |