MCPcopy
hub / github.com/smicallef/spiderfoot / error

Method error

sflib.py:186–195  ·  view source on GitHub ↗

Print and log an error message Args: message (str): error message

(self, message: str)

Source from the content-addressed store, hash-verified

184 return val
185
186 def error(self, message: str) -> None:
187 """Print and log an error message
188
189 Args:
190 message (str): error message
191 """
192 if not self.opts['__logging']:
193 return
194
195 self.log.error(message, extra={'scanId': self._scanId})
196
197 def fatal(self, error: str) -> None:
198 """Print an error message and stacktrace then exit.

Callers 15

optValueToDataMethod · 0.95
urlRelativeToAbsoluteMethod · 0.95
urlBaseDirMethod · 0.95
urlBaseUrlMethod · 0.95
urlFQDNMethod · 0.95
domainKeywordMethod · 0.95
domainKeywordsMethod · 0.95
resolveHostMethod · 0.95
resolveIPMethod · 0.95
resolveHost6Method · 0.95
validateIPMethod · 0.95
parseCertMethod · 0.95

Calls

no outgoing calls

Tested by 2

test_errorMethod · 0.76
handleEventMethod · 0.36