Add logging to track a Notice messages

- Part of https://github.com/friendica/friendica/issues/10755#issuecomment-933040517
This commit is contained in:
Hypolite Petovan 2021-10-03 19:18:00 -04:00
parent fe68df8e6a
commit 42e77e23ac
1 changed files with 4 additions and 0 deletions

View File

@ -850,6 +850,10 @@ class User
*/
public static function getAvatarUrl(array $user, string $size = ''):string
{
if (empty($user['nickname'])) {
DI::logger()->warning('Missing user nickname key', ['trace' => System::callstack(20)]);
}
$url = DI::baseUrl() . '/photo/';
switch ($size) {