Add profile info logging

This commit is contained in:
momo5502 2023-04-10 09:02:07 +02:00
parent 9a54a14814
commit 9326405be3

View File

@ -100,6 +100,10 @@ namespace profile_infos
} }
else else
{ {
#ifdef DEV_BUILD
printf("Erasing profile info: %llX\n", i->first);
#endif
i = profiles.erase(i); i = profiles.erase(i);
} }
} }
@ -126,6 +130,10 @@ namespace profile_infos
return; return;
} }
#ifdef DEV_BUILD
printf("Adding profile info: %llX\n", user_id);
#endif
profile_mapping.access([&](profile_map& profiles) profile_mapping.access([&](profile_map& profiles)
{ {
profiles[user_id] = info; profiles[user_id] = info;
@ -202,7 +210,17 @@ namespace profile_infos
if (profile_entry != profiles.end()) if (profile_entry != profiles.end())
{ {
result = profile_entry->second; result = profile_entry->second;
#ifdef DEV_BUILD
printf("Requesting profile info: %llX - good\n", user_id);
#endif
} }
#ifdef DEV_BUILD
else
{
printf("Requesting profile info: %llX - bad\n", user_id);
}
#endif
return result; return result;
}); });