Skip to content

Commit fc00d29

Browse files
committed
Log 403
1 parent 4e4c1f6 commit fc00d29

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

public/index.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,11 @@
108108
if ($globalToken === null) {
109109
throw new Exception('Impossible de générer un token d\'accès global.');
110110
}
111-
$apiWrapper->setClientDomain($globalToken->access_token);
111+
try {
112+
$apiWrapper->setClientDomain($globalToken->access_token);
113+
} catch (Exception $e) {
114+
$c->get('logger.api')->warning('Échec de la configuration du domaine client (non bloquant) : ' . $e->getMessage());
115+
}
112116

113117
return $apiWrapper;
114118
});

0 commit comments

Comments
 (0)