chore: edit logs messages

This commit is contained in:
Maël Gangloff
2025-10-03 18:14:43 +02:00
parent 400ea42cb2
commit 49242af42f
9 changed files with 81 additions and 62 deletions

View File

@@ -44,9 +44,9 @@ class DomainRefreshController extends AbstractController
$idnDomain = RDAPService::convertToIdn($ldhName);
$userId = $this->getUser()->getUserIdentifier();
$this->logger->info('User {username} wants to update the domain name {idnDomain}.', [
$this->logger->info('User wants to update a domain name', [
'username' => $userId,
'idnDomain' => $idnDomain,
'ldhName' => $idnDomain,
]);
/** @var ?Domain $domain */
@@ -58,8 +58,8 @@ class DomainRefreshController extends AbstractController
&& !$this->kernel->isDebug()
&& true !== filter_var($request->get('forced', false), FILTER_VALIDATE_BOOLEAN)
) {
$this->logger->info('It is not necessary to update the information of the domain name {idnDomain} with the RDAP protocol.', [
'idnDomain' => $idnDomain,
$this->logger->info('It is not necessary to update the domain name', [
'ldhName' => $idnDomain,
]);
return $domain;