chg: Show stacktrace when we cannot build the pickle

pull/751/head
Raphaël Vinot 2023-08-04 13:15:39 +02:00
parent 959b7ca96d
commit 5fca6b13ea
1 changed files with 2 additions and 2 deletions

View File

@ -84,8 +84,8 @@ class BackgroundIndexer(AbstractManager):
self.logger.warning(f'Unable to find {uuid}. That should not happen.')
except NoValidHarFile as e:
self.logger.critical(f'There are no HAR files in the capture {uuid}: {uuid_path.parent.name} - {e}')
except Exception as e:
self.logger.critical(f'Unable to build pickle for {uuid}: {uuid_path.parent.name} - {e}')
except Exception:
self.logger.exception(f'Unable to build pickle for {uuid}: {uuid_path.parent.name}')
# The capture is not working, moving it away.
self.lookyloo.redis.hdel('lookup_dirs', uuid)
shutil.move(str(uuid_path.parent), str(self.discarded_captures_dir / uuid_path.parent.name))