From ff24313ae339b9f888ef37c4d504284d71f71842 Mon Sep 17 00:00:00 2001 From: Jeroen Dalsem Date: Tue, 26 Nov 2024 09:53:09 +0100 Subject: [PATCH] chore: use \Psr\Log\LogLevel constants when using elgg_log --- classes/Form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }