Skip to content

Commit

Permalink
docs: Output the error code string instead of int. in toxav logging
Browse files Browse the repository at this point in the history
"tox error: 7" is less useful than "tox error:
TOX_ERR_FRIEND_CUSTOM_PACKET_SENDQ".
  • Loading branch information
iphydf committed Dec 28, 2024
1 parent d55d0e4 commit 2bbfb35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ bazel-opt_task:
- cd /src/workspace && bazel
--max_idle_secs=5
test -k
--remote_cache=http://$CIRRUS_HTTP_CACHE_HOST
--build_tag_filters=-haskell
--test_tag_filters=-haskell
--
Expand Down Expand Up @@ -52,7 +51,6 @@ cimple_task:
- cd /src/workspace && bazel
--max_idle_secs=5
test -k
--remote_cache=http://$CIRRUS_HTTP_CACHE_HOST
--build_tag_filters=haskell
--test_tag_filters=haskell
--
Expand Down
4 changes: 2 additions & 2 deletions toxav/rtp.c
Original file line number Diff line number Diff line change
Expand Up @@ -780,8 +780,8 @@ static void rtp_send_piece(const Logger *log, Tox *tox, uint32_t friend_number,

if (error != TOX_ERR_FRIEND_CUSTOM_PACKET_OK) {
char *netstrerror = net_new_strerror(net_error());
LOGGER_WARNING(log, "RTP send failed (len: %d)! tox error: %d, net error: %s",
length + RTP_HEADER_SIZE + 1, error, netstrerror);
LOGGER_WARNING(log, "RTP send failed (len: %d)! tox error: %s, net error: %s",
length + RTP_HEADER_SIZE + 1, tox_err_friend_custom_packet_to_string(error), netstrerror);
net_kill_strerror(netstrerror);
}
}
Expand Down

0 comments on commit 2bbfb35

Please sign in to comment.