ultraverbose logging

This commit is contained in:
Daniil Gentili 2019-12-26 18:29:14 +01:00
parent aa40bb7ddd
commit 785fddc040
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -147,11 +147,11 @@ final class Rfc8484StubResolver implements Resolver
if ($reason instanceof NoRecordException) {
throw $reason;
}
$error = $reason->getMessage();
$error = (string) $reason;//->getMessage();
if ($reason instanceof MultiReasonException) {
$reasons = [];
foreach ($reason->getReasons() as $reason) {
$reasons []= $reason->getMessage();
$reasons []= (string) $reason;//->getMessage();
}
$error .= " (".\implode(", ", $reasons).")";
}