< Previous by Date Date Index Next by Date >
  Thread Index Next in Thread >

[reSIProcate] [resiprocate/resiprocate] log errno names instead of values (#49)


https://project.freertc.org/issues/25

In Order to solve this bug, I have created one header file Errdes.hxx inside rutil directory. It has error messages associated with the error number/code from the following functions :

-> SSL_ERROR_SYSCALL
-> SSL_get_error
-> X509_verify_cert_error_string

I have updated all the files(32) that contains numeric log messages. Now these files will call function from Errdes.hxx and will log error message instead of error code.

Example:
int e = getErrno();
ErrLog( << "socket error " << e);
At present, logs a numeric error code, e.g.
"socket error 22"

After commit,
ErrLog( << "socket error " << errortostringOS(e) );
It will log error message, e.g.
"socket error EINVAL (Invalid argument) 22"
If error number is negative or unknown error occur then log message will be,
"socket error Unknown error errno"
(e.g. "socket error Unknown error -48")

Total 34 files changed: 32-files updated + 1-header file created + configure.ac file updated for successful build in Travis-CI

For quick view of all the files that i have updated please [visit].(http://paste.debian.net/hidden/11d413da/)


You can view, comment on, or merge this pull request online at:

  https://github.com/resiprocate/resiprocate/pull/49

Commit Summary

File Changes

Patch Links:


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.