Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

- Updated logging.
- Fixed setting person id

## [1.1.1]
Expand Down
10 changes: 5 additions & 5 deletions src/Helper/WebformHelperSF1601.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,10 @@ public function sendDigitalPost(WebformSubmissionInterface $submission, array $h
$type = $handlerMessageSettings[WebformHandlerSF1601::TYPE] ?? SF1601::TYPE_DIGITAL_POST;
$response = $service->kombiPostAfsend($transactionId, $type, $message);

$this->notice('Digital post sent to @type @id', $logContext + [
$this->notice('Digital post sent', $logContext + [
'handler_id' => 'os2forms_digital_post',
'operation' => 'digital post sent',
'@type' => $recipientIdentifierType,
'@id' => $recipientIdentifier,
]
);
]);

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

return $job;
}
catch (\Exception $exception) {
$this->error('Error creating job for sending digital post.', $context + [
'handler_id' => 'os2forms_digital_post',
'operation' => 'digital post failed',
]);
return NULL;
Expand Down