MCPcopy Index your code
hub / github.com/aboutcode-org/vulnerablecode / log

Method log

vulnerabilities/pipelines/__init__.py:133–139  ·  view source on GitHub ↗

Log the given `message` to the current module logger and execution_log.

(self, message, level=logging.INFO)

Source from the content-addressed store, hash-verified

131 return 0, ""
132
133 def log(self, message, level=logging.INFO):
134 """Log the given `message` to the current module logger and execution_log."""
135 now_local = datetime.now(timezone.utc).astimezone()
136 timestamp = now_local.strftime("%Y-%m-%d %T.%f %Z")
137 message = f"{timestamp} {message}"
138 module_logger.log(level, message)
139 self.append_to_log(message)
140
141
142class VulnerableCodePipeline(PipelineDefinition, BasePipelineRun):

Callers 15

executeMethod · 0.95
_process_batchMethod · 0.45
fetch_exploitsMethod · 0.45
fetchMethod · 0.45
fetch_exploitsMethod · 0.45
add_exploitMethod · 0.45

Calls 1

append_to_logMethod · 0.95

Tested by

no test coverage detected