diff --git a/classes/Form.php b/classes/Form.php index 333c5df..8f06b70 100644 --- a/classes/Form.php +++ b/classes/Form.php @@ -210,7 +210,7 @@ public function getEndpoint(): ?\ColdTrick\Forms\Endpoint { try { $endpoint = new $class($endpoint_config); } catch (Exception $e) { - elgg_log("Form->getEndpoint() error: {$e->getMessage()}", 'ERROR'); + elgg_log("Form->getEndpoint() error: {$e->getMessage()}", \Psr\Log\LogLevel::ERROR); return null; }