mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 00:49:02 +00:00
Merge pull request #11223 from appwrite/update-message-logging
This commit is contained in:
commit
29ab9ef9d2
1 changed files with 9 additions and 1 deletions
|
|
@ -129,6 +129,11 @@ class Messaging extends Action
|
|||
$userIds = $message->getAttribute('users', []);
|
||||
$providerType = $message->getAttribute('providerType');
|
||||
|
||||
Console::log(json_encode([
|
||||
'project' => $project->getId(),
|
||||
'type' => $providerType,
|
||||
]));
|
||||
|
||||
/**
|
||||
* @var array<Document> $allTargets
|
||||
*/
|
||||
|
|
@ -400,7 +405,10 @@ class Messaging extends Action
|
|||
throw new \Exception('Project not set in payload');
|
||||
}
|
||||
|
||||
Console::log('Processing project: ' . $project->getId());
|
||||
Console::log(json_encode([
|
||||
'project' => $project->getId(),
|
||||
'type' => 'internal-sms'
|
||||
]));
|
||||
$denyList = System::getEnv('_APP_SMS_PROJECTS_DENY_LIST', '');
|
||||
$denyList = explode(',', $denyList);
|
||||
if (\in_array($project->getId(), $denyList)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue