/** * Logs a SQL statement to the system logger (DEBUG priority). * * @param string $sql The SQL to be executed * @param array $params The SQL parameters * @param array $types The SQL parameter types. * @return void */ public function startQuery($sql, array $params = NULL, array $types = NULL) { // this is a safeguard for when no logger might be available... if ($this->logger !== NULL) { $this->logger->log($sql, LOG_DEBUG, array('params' => $params, 'types' => $types)); } }
/** * Simulate this deployment without executing tasks * * @return void */ public function simulate() { $this->setDryRun(TRUE); $this->logger->log('Simulating ' . $this->name); $this->workflow->run($this); }