Skip to content

Commit

Permalink
chore: use \Psr\Log\LogLevel constants when using elgg_log
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalsem committed Nov 26, 2024
1 parent f27997d commit ff24313
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit ff24313

Please sign in to comment.