Skip to content

The logger drops frame with the "Success" status. #2764

@nickolay168

Description

@nickolay168

Repro steps:

  1. Start the tox client, capable to sending video stream in the console (I used qTox).
  2. Start the video call with the friend.

Result

The console will have a lot of non informative warnings as follows:
[04:15:03.304 UTC] rtp.c:842 : Warning: RTP send failed (len: 1373)! net error: Success

That happens, because we log failure when get the response error codes different fromTOX_ERR_FRIEND_CUSTOM_PACKET_OK, while we are logging the system error variable (errno), which in this case is "Success".

Proposal

I suggest to add tox error literal into the error:
[05:05:56.437 UTC] rtp.c:870 : Warning: RTP send failed (len: 1373)! tox error: TOX_ERR_FRIEND_CUSTOM_PACKET_SENDQ net error: Success

I would be happy to create a PR with the fix, if I will be allowed to. What is the process of contributing? Should I create a Merge or pull request?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions