Skip to content

Commit

Permalink
chore: use correct log level
Browse files Browse the repository at this point in the history
  • Loading branch information
jeabakker committed Nov 25, 2024
1 parent a604c76 commit 6803a8f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion classes/ColdTrick/TestPanel/EmailHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

namespace ColdTrick\TestPanel;

use Psr\Log\LogLevel;

/**
* Email system handler
*/
Expand Down Expand Up @@ -51,7 +53,7 @@ public static function validate(\Elgg\Event $event): ?bool {
}

$to = $recipient->getEmail();
elgg_log("Test panel processing: {$to}", 'INFO');
elgg_log("Test panel processing: {$to}", LogLevel::INFO);

if (!in_array($to, $allowed_emails)) {
// user is not allowed to get e-mails
Expand Down

0 comments on commit 6803a8f

Please sign in to comment.