Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit 3b88188

Browse files
committed
Updated log messages
1 parent 6962db8 commit 3b88188

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Helper/WebformHelperSF1601.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -188,12 +188,10 @@ public function sendDigitalPost(WebformSubmissionInterface $submission, array $h
188188
$type = $handlerMessageSettings[WebformHandlerSF1601::TYPE] ?? SF1601::TYPE_DIGITAL_POST;
189189
$response = $service->kombiPostAfsend($transactionId, $type, $message);
190190

191-
$this->notice('Digital post sent to @type @id', $logContext + [
191+
$this->notice('Digital post sent', $logContext + [
192+
'handler_id' => 'os2forms_digital_post',
192193
'operation' => 'digital post sent',
193-
'@type' => $recipientIdentifierType,
194-
'@id' => $recipientIdentifier,
195-
]
196-
);
194+
]);
197195

198196
return [$response, $service->getLastKombiMeMoMessage()];
199197
}
@@ -245,13 +243,15 @@ public function createJob(WebformSubmissionInterface $webformSubmission, array $
245243
$queue->enqueueJob($job);
246244
$context['@queue'] = $queue->id();
247245
$this->notice('Job for sending digital post add to the queue @queue.', $context + [
246+
'handler_id' => 'os2forms_digital_post',
248247
'operation' => 'digital post queued for sending',
249248
]);
250249

251250
return $job;
252251
}
253252
catch (\Exception $exception) {
254253
$this->error('Error creating job for sending digital post.', $context + [
254+
'handler_id' => 'os2forms_digital_post',
255255
'operation' => 'digital post failed',
256256
]);
257257
return NULL;

0 commit comments

Comments
 (0)