Make guid array visible in log file, regardless if the guids are empty or not.
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user