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

View file

@ -850,6 +850,10 @@ class User
*/ */
public static function getAvatarUrl(array $user, string $size = ''):string 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/'; $url = DI::baseUrl() . '/photo/';
switch ($size) { switch ($size) {