Add profile info logging
This commit is contained in:
parent
9a54a14814
commit
9326405be3
@ -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;
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user