Log the given `message` to the current module logger and execution_log.
(self, message, level=logging.INFO)
| 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 | |
| 142 | class VulnerableCodePipeline(PipelineDefinition, BasePipelineRun): |
no test coverage detected