1
0
Fork 0
mirror of https://github.com/friendica/friendica-directory synced 2024-11-13 07:43:42 +01:00

Add debug logging of ProfilePollQueue::add calls

This commit is contained in:
Hypolite Petovan 2018-11-13 22:00:50 -05:00
parent 27c5c14ed7
commit bbff23caa5
3 changed files with 6 additions and 3 deletions

View file

@ -68,7 +68,8 @@ class Submit
['base_url' => $profileUriInfo['server_uri']]
);
$this->profilePollQueueModel->add($url);
$result = $this->profilePollQueueModel->add($url);
$this->logger->debug('Profile queue add URL: ' . $url . ' - ' . $result);
$this->logger->info('Successfully received profile URL');
} catch (\Exception $ex) {

View file

@ -60,7 +60,8 @@ class Directory
$profiles = $this->getPullResult($directory_url, $last_polled);
foreach ($profiles as $profile_url) {
$this->profilePollQueueModel->add($profile_url);
$result = $this->profilePollQueueModel->add($profile_url);
$this->logger->debug('Profile queue add URL: ' . $profile_url . ' - ' . $result);
}
$this->logger->info('Successfully pulled ' . count($profiles) . ' profiles');

View file

@ -174,7 +174,8 @@ class Server
//Add the admin to the directory
if (!empty($probe_result['data']['admin']['profile'])) {
$this->profilePollQueueModel->add($probe_result['data']['admin']['profile']);
$result = $this->profilePollQueueModel->add($probe_result['data']['admin']['profile']);
$this->logger->debug('Profile queue add URL: ' . $probe_result['data']['admin']['profile'] . ' - ' . $result);
}
}