Add logs for invalid profiles

This commit is contained in:
morg 2021-11-04 09:44:00 +01:00 committed by Adam Honse
parent c9677fc6a7
commit 3b49e9329b

View file

@ -421,6 +421,14 @@ void ProfileManager::UpdateProfileList()
LOG_INFO("Valid v%i profile found for %s", profile_version, filename.c_str());
}
else
{
LOG_WARNING("Profile %s isn't valid for current version (v%i, expected v%i at most)", filename.c_str(), profile_version, OPENRGB_PROFILE_VERSION);
}
}
else
{
LOG_WARNING("Profile %s isn't valid: header is missing", filename.c_str());
}
profile_file.close();