Add logging callback to messenger_test.

So we can see what went wrong if it fails.
This commit is contained in:
iphydf 2017-01-06 13:47:50 +00:00
parent 01cb35c1f6
commit 3fb683115c
No known key found for this signature in database
GPG Key ID: 3855DBA2D74403C9

View File

@ -352,6 +352,7 @@ int main(int argc, char *argv[])
/* IPv6 status from global define */
Messenger_Options options = {0};
options.ipv6enabled = TOX_ENABLE_IPV6_DEFAULT;
options.log_callback = (logger_cb *)print_debug_log;
m = new_messenger(&options, 0);
/* setup a default friend and friendnum */