Skip to content

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.

Changed truncation method.

smicallef9ddf79d92627
diff --git a/modules/sfp__stor_db.py b/modules/sfp__stor_db.py
index 2f753622..e9a033b0 100644
--- a/modules/sfp__stor_db.py
+++ b/modules/sfp__stor_db.py
@@ -64,9 +64,7 @@ class sfp__stor_db(SpiderFootPlugin):
if self.opts['maxstorage'] != 0:
if len(sfEvent.data) > self.opts['maxstorage']:
- sf.debug("Truncated " + sfEvent.eventType + " data due to storage limitation")
- sfEvent.truncateData(self.opts['maxstorage'])
- sfdb.scanEventStore(self.opts['__guid__'], sfEvent)
+ sfdb.scanEventStore(self.opts['__guid__'], sfEvent, self.opts['maxstorage'])
return None
sfdb.scanEventStore(self.opts['__guid__'], sfEvent)