Add debug logging of ProfilePollQueue::add calls
This commit is contained in:
parent
27c5c14ed7
commit
bbff23caa5
3 changed files with 6 additions and 3 deletions
|
@ -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) {
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue