Adjusted log levels, removed spaces

This commit is contained in:
Michael Vogel 2020-11-30 07:06:43 +01:00
parent 3f3f56db57
commit 4c39c88b52
1 changed files with 7 additions and 7 deletions

View File

@ -668,7 +668,7 @@ class Feed
if ($total > 1) {
$interval = self::getPollInterval($contact);
$delay = round(($interval * 60) / $total);
Logger::info('Got posting delay', ['delay' => $delay, 'interval' => $interval, 'items' => $total, 'cid' => $contact['id'], 'url' => $contact['url']]);
Logger::notice('Got posting delay', ['delay' => $delay, 'interval' => $interval, 'items' => $total, 'cid' => $contact['id'], 'url' => $contact['url']]);
} else {
$delay = 0;
}
@ -678,13 +678,13 @@ class Feed
foreach ($postings as $posting) {
if ($delay > 0) {
$publish_at = DateTimeFormat::utc('now + ' . $post_delay . ' minute');
Logger::info('Got publishing date', ['delay' => $delay, 'publish_at' => $publish_at, 'cid' => $contact['id'], 'url' => $contact['url']]);
Logger::notice('Got publishing date', ['delay' => $delay, 'publish_at' => $publish_at, 'cid' => $contact['id'], 'url' => $contact['url']]);
$post_delay += $delay;
}
$id = Item::insert($posting['item'], $posting['notify']);
Logger::info("Feed for contact " . $contact["url"] . " stored under id " . $id);
Logger::notice("Feed for contact " . $contact["url"] . " stored under id " . $id);
if (!empty($id) && (!empty($posting['taglist']) || !empty($posting['attachments']))) {
$feeditem = Item::selectFirst(['uri-id'], ['id' => $id]);