From 5dc140da15b8ce7dcc4bd614f47b170ea85fdd01 Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Thu, 4 Mar 2021 11:18:04 +0100 Subject: [PATCH] Fixes ACCOUNTS-13, ACCOUNTS-3F. Remove warnings for the cases which are actually happens --- common/models/Textures.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/common/models/Textures.php b/common/models/Textures.php index 39cc698..b6820c4 100644 --- a/common/models/Textures.php +++ b/common/models/Textures.php @@ -21,10 +21,8 @@ class Textures { $uuid = str_replace('-', '', $this->account->uuid); $profile = $this->getProfile($signed); if ($profile === null) { - // This case shouldn't happen at all, but until we find out how it'll actually behave, - // provide for a fallback solution - Yii::warning("By some reasons there is no profile for \"{$this->account->username}\"."); - + // This case shouldn't happen at all, but synchronization isn't perfect and sometimes + // information might be now updated. Provide fallback solution $profile = [ 'name' => $this->account->username, 'id' => $uuid, @@ -52,7 +50,6 @@ class Textures { } } elseif ($profile['id'] !== $uuid) { // Also a case that shouldn't happen, but is technically possible - Yii::warning("By an unknown reason username \"{$this->account->username}\" has an invalid id from chrly"); $profile['id'] = $uuid; }