mirror of
https://github.com/friendica/friendica
synced 2024-12-23 00:00:21 +00:00
Improved logging
This commit is contained in:
parent
09f29cd577
commit
ee5209a847
1 changed files with 3 additions and 2 deletions
|
@ -640,16 +640,17 @@ class HTTPSignature
|
|||
|
||||
$profile = APContact::getByURL($url);
|
||||
if (!empty($profile)) {
|
||||
Logger::log('Taking key from id ' . $id, Logger::DEBUG);
|
||||
Logger::info('Taking key from id', ['id' => $id]);
|
||||
return ['url' => $url, 'pubkey' => $profile['pubkey'], 'type' => $profile['type']];
|
||||
} elseif ($url != $actor) {
|
||||
$profile = APContact::getByURL($actor);
|
||||
if (!empty($profile)) {
|
||||
Logger::log('Taking key from actor ' . $actor, Logger::DEBUG);
|
||||
Logger::info('Taking key from actor', ['actor' => $actor]);
|
||||
return ['url' => $actor, 'pubkey' => $profile['pubkey'], 'type' => $profile['type']];
|
||||
}
|
||||
}
|
||||
|
||||
Logger::notice('Key could not be fetched', ['url' => $url, 'actor' => $actor]);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue