Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Stop using perror for logging#1749

Open
eakraly wants to merge 2 commits intomasterfrom
perror
Open

Stop using perror for logging#1749
eakraly wants to merge 2 commits intomasterfrom
perror

Conversation

@eakraly
Copy link
Collaborator

@eakraly eakraly commented Sep 7, 2025

perror sends to standard error stream
In most current use cases there is some logging mechanism that expects the logs to appear in stdout (or other single output)
Moreover, most of the error messages printed by perror are not helpful (single words not even pointing to where the error happened and what was the context) and in a lot of places there is an additional logging macro

@eakraly eakraly marked this pull request as ready for review September 14, 2025 00:23
@eakraly eakraly requested a review from ggarber September 14, 2025 00:23
Copy link

@jimying jimying left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are missing error describe string.

should change like this:
TURN_LOG_FUNC(TURN_LOG_LEVEL_ERROR, "xxxx: %s", strerror(errno));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants