mirror of
https://github.com/friendica/friendica
synced 2025-04-25 15:50:10 +00:00
Loglevels are adjusted
This commit is contained in:
parent
312e4d8844
commit
757a5c2de9
32 changed files with 93 additions and 111 deletions
|
@ -1299,7 +1299,7 @@ class Contact
|
|||
}
|
||||
|
||||
if (!$contact_id) {
|
||||
Logger::info('Contact was not inserted', ['url' => $url, 'uid' => $uid]);
|
||||
Logger::warning('Contact was not inserted', ['url' => $url, 'uid' => $uid]);
|
||||
return 0;
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -108,7 +108,7 @@ class Relation
|
|||
$followings = [];
|
||||
}
|
||||
} else {
|
||||
Logger::notice('Contact seems to be local but could not be found here', ['url' => $url]);
|
||||
Logger::warning('Contact seems to be local but could not be found here', ['url' => $url]);
|
||||
$followers = [];
|
||||
$followings = [];
|
||||
}
|
||||
|
|
|
@ -279,7 +279,7 @@ class Item
|
|||
if ($item['uid'] == $uid) {
|
||||
self::markForDeletionById($item['id'], PRIORITY_HIGH);
|
||||
} elseif ($item['uid'] != 0) {
|
||||
Logger::notice('Wrong ownership. Not deleting item', ['id' => $item['id']]);
|
||||
Logger::warning('Wrong ownership. Not deleting item', ['id' => $item['id']]);
|
||||
}
|
||||
}
|
||||
DBA::close($items);
|
||||
|
@ -580,7 +580,7 @@ class Item
|
|||
if (!empty($item['uid'])) {
|
||||
$owner = User::getOwnerDataById($item['uid'], false);
|
||||
if (!$owner) {
|
||||
Logger::notice('Missing item user owner data', ['uid' => $item['uid']]);
|
||||
Logger::warning('Missing item user owner data', ['uid' => $item['uid']]);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -2515,7 +2515,7 @@ class Item
|
|||
|
||||
$item = Post::selectFirst(self::ITEM_FIELDLIST, ['id' => $item_id]);
|
||||
if (!DBA::isResult($item)) {
|
||||
Logger::notice('like: unknown item', ['id' => $item_id]);
|
||||
Logger::warning('Post had not been fetched', ['id' => $item_id]);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -2581,7 +2581,7 @@ class Item
|
|||
$activity = Activity::ANNOUNCE;
|
||||
break;
|
||||
default:
|
||||
Logger::notice('unknown verb', ['verb' => $verb, 'item' => $item_id]);
|
||||
Logger::warning('unknown verb', ['verb' => $verb, 'item' => $item_id]);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -186,7 +186,7 @@ class Mail
|
|||
}
|
||||
|
||||
if (!$convid) {
|
||||
Logger::notice('send message: conversation not found.');
|
||||
Logger::warning('conversation not found.');
|
||||
return -4;
|
||||
}
|
||||
|
||||
|
@ -290,7 +290,7 @@ class Mail
|
|||
}
|
||||
|
||||
if (!$convid) {
|
||||
Logger::notice('send message: conversation not found.');
|
||||
Logger::warning('conversation not found.');
|
||||
return -4;
|
||||
}
|
||||
|
||||
|
|
|
@ -1095,7 +1095,7 @@ class Photo
|
|||
|
||||
$r = self::store($image, $user['uid'], 0, $resource_id, $filename, $album, 0, self::DEFAULT, $allow_cid, $allow_gid, $deny_cid, $deny_gid, $desc);
|
||||
if (!$r) {
|
||||
Logger::notice('Photo could not be stored');
|
||||
Logger::warning('Photo could not be stored');
|
||||
return [];
|
||||
}
|
||||
|
||||
|
@ -1182,7 +1182,7 @@ class Photo
|
|||
|
||||
$r = self::store($image, $uid, 0, $resource_id, $filename, $album, 4, self::USER_AVATAR);
|
||||
if (!$r) {
|
||||
logger::notice('profile image upload with scale 4 (300) failed');
|
||||
logger::warning('profile image upload with scale 4 (300) failed');
|
||||
}
|
||||
|
||||
if ($width > 80 || $height > 80) {
|
||||
|
@ -1191,7 +1191,7 @@ class Photo
|
|||
|
||||
$r = self::store($image, $uid, 0, $resource_id, $filename, $album, 5, self::USER_AVATAR);
|
||||
if (!$r) {
|
||||
logger::notice('profile image upload with scale 5 (80) failed');
|
||||
logger::warning('profile image upload with scale 5 (80) failed');
|
||||
}
|
||||
|
||||
if ($width > 48 || $height > 48) {
|
||||
|
@ -1200,7 +1200,7 @@ class Photo
|
|||
|
||||
$r = self::store($image, $uid, 0, $resource_id, $filename, $album, 6, self::USER_AVATAR);
|
||||
if (!$r) {
|
||||
logger::notice('profile image upload with scale 6 (48) failed');
|
||||
logger::warning('profile image upload with scale 6 (48) failed');
|
||||
}
|
||||
|
||||
logger::info('new profile image upload ended');
|
||||
|
@ -1257,7 +1257,7 @@ class Photo
|
|||
|
||||
$r = self::store($image, $uid, 0, $resource_id, $filename, $album, 3, self::USER_BANNER);
|
||||
if (!$r) {
|
||||
logger::notice('profile banner upload with scale 3 (960) failed');
|
||||
logger::warning('profile banner upload with scale 3 (960) failed');
|
||||
}
|
||||
|
||||
logger::info('new profile banner upload ended');
|
||||
|
|
|
@ -533,7 +533,7 @@ class Post
|
|||
$puids = array_column($rows, 'post-user-id');
|
||||
if (!DBA::update('post-user', $update_fields, ['id' => $puids])) {
|
||||
DBA::rollback();
|
||||
Logger::notice('Updating post-user failed', ['fields' => $update_fields, 'condition' => $condition]);
|
||||
Logger::warning('Updating post-user failed', ['fields' => $update_fields, 'condition' => $condition]);
|
||||
return false;
|
||||
}
|
||||
$affected_count += DBA::affectedRows();
|
||||
|
@ -550,7 +550,7 @@ class Post
|
|||
$uriids = array_column($rows, 'uri-id');
|
||||
if (!DBA::update('post-content', $update_fields, ['uri-id' => $uriids])) {
|
||||
DBA::rollback();
|
||||
Logger::notice('Updating post-content failed', ['fields' => $update_fields, 'condition' => $condition]);
|
||||
Logger::warning('Updating post-content failed', ['fields' => $update_fields, 'condition' => $condition]);
|
||||
return false;
|
||||
}
|
||||
$affected_count += DBA::affectedRows();
|
||||
|
@ -573,7 +573,7 @@ class Post
|
|||
|
||||
if (!DBA::update('post', $update_fields, ['uri-id' => $uriids])) {
|
||||
DBA::rollback();
|
||||
Logger::notice('Updating post failed', ['fields' => $update_fields, 'condition' => $condition]);
|
||||
Logger::warning('Updating post failed', ['fields' => $update_fields, 'condition' => $condition]);
|
||||
return false;
|
||||
}
|
||||
$affected_count += DBA::affectedRows();
|
||||
|
@ -590,7 +590,7 @@ class Post
|
|||
$uriids = array_column($rows, 'uri-id');
|
||||
if (!DBA::update('post-delivery-data', $update_fields, ['uri-id' => $uriids])) {
|
||||
DBA::rollback();
|
||||
Logger::notice('Updating post-delivery-data failed', ['fields' => $update_fields, 'condition' => $condition]);
|
||||
Logger::warning('Updating post-delivery-data failed', ['fields' => $update_fields, 'condition' => $condition]);
|
||||
return false;
|
||||
}
|
||||
$affected_count += DBA::affectedRows();
|
||||
|
@ -607,7 +607,7 @@ class Post
|
|||
$uriids = array_column($rows, 'uri-id');
|
||||
if (!DBA::update('post-thread', $update_fields, ['uri-id' => $uriids])) {
|
||||
DBA::rollback();
|
||||
Logger::notice('Updating post-thread failed', ['fields' => $update_fields, 'condition' => $condition]);
|
||||
Logger::warning('Updating post-thread failed', ['fields' => $update_fields, 'condition' => $condition]);
|
||||
return false;
|
||||
}
|
||||
$affected_count += DBA::affectedRows();
|
||||
|
@ -624,7 +624,7 @@ class Post
|
|||
$thread_puids = array_column($rows, 'post-user-id');
|
||||
if (!DBA::update('post-thread-user', $update_fields, ['post-user-id' => $thread_puids])) {
|
||||
DBA::rollback();
|
||||
Logger::notice('Updating post-thread-user failed', ['fields' => $update_fields, 'condition' => $condition]);
|
||||
Logger::warning('Updating post-thread-user failed', ['fields' => $update_fields, 'condition' => $condition]);
|
||||
return false;
|
||||
}
|
||||
$affected_count += DBA::affectedRows();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue