Skip to content

Commit

Permalink
[PVR] CPVRClients::UpdateClients: Add log info for clients to create …
Browse files Browse the repository at this point in the history
…/ destroy.
  • Loading branch information
ksooo committed Aug 8, 2024
1 parent 1299d99 commit d493d22
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions xbmc/pvr/addons/PVRClients.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,17 @@ void CPVRClients::UpdateClients(
instanceEnabled = client->IsEnabled();

if (instanceEnabled)
{
CLog::LogF(LOGINFO, "Creating PVR client: addonId={}, instanceId={}, clientId={}",
addon->ID(), instanceId, clientId);
clientsToCreate.emplace_back(client);
}
else if (isKnownClient)
{
CLog::LogF(LOGINFO, "Destroying PVR client: addonId={}, instanceId={}, clientId={}",
addon->ID(), instanceId, clientId);
clientsToDestroy.emplace_back(clientId);
}
}
else if (IsCreatedClient(clientId))
{
Expand All @@ -140,9 +148,17 @@ void CPVRClients::UpdateClients(
}

if (instanceEnabled)
{
CLog::LogF(LOGINFO, "Recreating PVR client: addonId={}, instanceId={}, clientId={}",
addon->ID(), instanceId, clientId);
clientsToReCreate.emplace_back(clientId, addon->Name());
}
else
{
CLog::LogF(LOGINFO, "Destroying PVR client: addonId={}, instanceId={}, clientId={}",
addon->ID(), instanceId, clientId);
clientsToDestroy.emplace_back(clientId);
}
}
}
}
Expand Down

0 comments on commit d493d22

Please sign in to comment.