disable some logs for release builds

TODO: needs to be done differently
This commit is contained in:
Green Sky 2023-08-19 21:40:43 +02:00
parent b49db892f6
commit dfa5a501ec
No known key found for this signature in database
1 changed files with 3 additions and 0 deletions

View File

@ -261,8 +261,11 @@ void ToxEventLogger::subscribeAll(ToxEventProviderI& tep) {
tep.subscribe(this, TOX_EVENT_GROUP_PASSWORD);
tep.subscribe(this, TOX_EVENT_GROUP_MESSAGE);
tep.subscribe(this, TOX_EVENT_GROUP_PRIVATE_MESSAGE);
#if !NDEBUG
// TOO spammy
tep.subscribe(this, TOX_EVENT_GROUP_CUSTOM_PACKET);
tep.subscribe(this, TOX_EVENT_GROUP_CUSTOM_PRIVATE_PACKET);
#endif
tep.subscribe(this, TOX_EVENT_GROUP_INVITE);
tep.subscribe(this, TOX_EVENT_GROUP_PEER_JOIN);
tep.subscribe(this, TOX_EVENT_GROUP_PEER_EXIT);