Make guid array visible in log file, regardless if the guids are empty or not.

This commit is contained in:
Abdulmhsen B. A. A
2022-04-22 21:43:20 +03:00
parent d0cab98527
commit 46e7bf874b
2 changed files with 11 additions and 2 deletions

View File

@@ -1219,9 +1219,13 @@ class JellyfinServer implements ServerInterface
}
}
$guids = (array)($item->ProviderIds ?? []);
$this->logger->notice(
sprintf('Ignoring %s. No valid GUIDs.', $iName),
(array)($item->ProviderIds ?? [])
[
'guids' => empty($guids) ? 'None' : $guids
]
);
Data::increment($this->name, $type . '_ignored_no_supported_guid');

View File

@@ -1247,7 +1247,12 @@ class PlexServer implements ServerInterface
}
}
$this->logger->notice(sprintf('Ignoring %s. No valid GUIDs.', $iName), $item->Guid ?? []);
$this->logger->notice(
sprintf('Ignoring %s. No valid GUIDs.', $iName),
[
'guids' => empty($item->Guid) ? 'None' : $item->Guid,
]
);
Data::increment($this->name, $type . '_ignored_no_supported_guid');
return;
}