Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logging improvements #1816

Merged
merged 8 commits into from
Apr 21, 2024
Merged

Logging improvements #1816

merged 8 commits into from
Apr 21, 2024

Conversation

gdamore
Copy link
Contributor

@gdamore gdamore commented Apr 21, 2024

fixes #

Note that the above format should be used in your git commit comments.
You agree that by submitting a PR, you have read and agreed to our
contributing guidelines.

gdamore added 2 commits April 20, 2024 19:56
This includes socket<xxx> and pipe<xxx> identifying information,
and logged URLs and socket addresses. This should help especially
when debugging complex configurations/topologies.
@gdamore gdamore force-pushed the gdamore/strsockaddr branch from 6a4d21c to 9aeb608 Compare April 21, 2024 02:56
src/core/sockaddr.c Fixed Show fixed Hide fixed
src/sp/transport/tcp/tcp.c Fixed Show fixed Hide fixed
src/sp/transport/tls/tls.c Fixed Show fixed Hide fixed
gdamore added 2 commits April 21, 2024 08:43
nng_log_get_level() is meant to allow users to obtain the
current level and avoid some possibly expensive operations just
to collect debugging information when debugging is not in effect.
Copy link

codecov bot commented Apr 21, 2024

Codecov Report

Attention: Patch coverage is 87.25490% with 13 lines in your changes are missing coverage. Please review.

Project coverage is 78.13%. Comparing base (3593eba) to head (668063e).

Files Patch % Lines
src/sp/transport/tls/tls.c 0.00% 5 Missing ⚠️
src/core/sockaddr.c 94.11% 4 Missing ⚠️
src/core/listener.c 75.00% 2 Missing ⚠️
src/core/socket.c 66.66% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1816      +/-   ##
==========================================
- Coverage   79.39%   78.13%   -1.26%     
==========================================
  Files          95       94       -1     
  Lines       21335    20520     -815     
==========================================
- Hits        16938    16033     -905     
- Misses       4397     4487      +90     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

gdamore added 3 commits April 21, 2024 09:48
We use a custom logger for NUTS, and this fits within the NUTS
test framework well, so that if -v is supplied we get more content.
All tests now get this by default.
src/core/sockaddr_test.c Fixed Show fixed Hide fixed
src/core/sockaddr_test.c Fixed Show fixed Hide fixed
src/core/sockaddr_test.c Fixed Show fixed Hide fixed
src/core/sockaddr_test.c Fixed Show fixed Hide fixed
src/core/sockaddr_test.c Fixed Show fixed Hide fixed
src/core/sockaddr_test.c Fixed Show fixed Hide fixed
src/core/sockaddr_test.c Fixed Show fixed Hide fixed
Several bugs in the inet6 version of nng_str_sockaddr.
Added a test suite for all families.
@gdamore gdamore force-pushed the gdamore/strsockaddr branch from 940d779 to 668063e Compare April 21, 2024 19:15
@gdamore gdamore merged commit 56507ab into master Apr 21, 2024
16 of 18 checks passed
@gdamore gdamore deleted the gdamore/strsockaddr branch April 21, 2024 19:23
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.

1 participant