Add logging to track a Notice messages
- Part of https://github.com/friendica/friendica/issues/10755#issuecomment-933040517
This commit is contained in:
parent
fe68df8e6a
commit
42e77e23ac
1 changed files with 4 additions and 0 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue