mirror of https://github.com/CIRCL/lookyloo
chg: Show stacktrace when we cannot build the pickle
parent
959b7ca96d
commit
5fca6b13ea
|
@ -84,8 +84,8 @@ class BackgroundIndexer(AbstractManager):
|
||||||
self.logger.warning(f'Unable to find {uuid}. That should not happen.')
|
self.logger.warning(f'Unable to find {uuid}. That should not happen.')
|
||||||
except NoValidHarFile as e:
|
except NoValidHarFile as e:
|
||||||
self.logger.critical(f'There are no HAR files in the capture {uuid}: {uuid_path.parent.name} - {e}')
|
self.logger.critical(f'There are no HAR files in the capture {uuid}: {uuid_path.parent.name} - {e}')
|
||||||
except Exception as e:
|
except Exception:
|
||||||
self.logger.critical(f'Unable to build pickle for {uuid}: {uuid_path.parent.name} - {e}')
|
self.logger.exception(f'Unable to build pickle for {uuid}: {uuid_path.parent.name}')
|
||||||
# The capture is not working, moving it away.
|
# The capture is not working, moving it away.
|
||||||
self.lookyloo.redis.hdel('lookup_dirs', uuid)
|
self.lookyloo.redis.hdel('lookup_dirs', uuid)
|
||||||
shutil.move(str(uuid_path.parent), str(self.discarded_captures_dir / uuid_path.parent.name))
|
shutil.move(str(uuid_path.parent), str(self.discarded_captures_dir / uuid_path.parent.name))
|
||||||
|
|
Loading…
Reference in New Issue