Fixes ACCOUNTS-13, ACCOUNTS-3F. Remove warnings for the cases which are actually happens

This commit is contained in:
ErickSkrauch 2021-03-04 11:18:04 +01:00
parent daebb66266
commit 5dc140da15

View File

@ -21,10 +21,8 @@ class Textures {
$uuid = str_replace('-', '', $this->account->uuid); $uuid = str_replace('-', '', $this->account->uuid);
$profile = $this->getProfile($signed); $profile = $this->getProfile($signed);
if ($profile === null) { if ($profile === null) {
// This case shouldn't happen at all, but until we find out how it'll actually behave, // This case shouldn't happen at all, but synchronization isn't perfect and sometimes
// provide for a fallback solution // information might be now updated. Provide fallback solution
Yii::warning("By some reasons there is no profile for \"{$this->account->username}\".");
$profile = [ $profile = [
'name' => $this->account->username, 'name' => $this->account->username,
'id' => $uuid, 'id' => $uuid,
@ -52,7 +50,6 @@ class Textures {
} }
} elseif ($profile['id'] !== $uuid) { } elseif ($profile['id'] !== $uuid) {
// Also a case that shouldn't happen, but is technically possible // 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; $profile['id'] = $uuid;
} }