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

Optimize: Modify log module #78

Merged
merged 1 commit into from
Nov 20, 2023

Conversation

raychen911
Copy link
Contributor

No description provided.

Copy link

codecov bot commented Nov 17, 2023

Codecov Report

Merging #78 (c261d3a) into main (afa0891) will decrease coverage by 0.05906%.
Report is 1 commits behind head on main.
The diff coverage is 64.10256%.

Additional details and impacted files

Impacted file tree graph

@@                 Coverage Diff                 @@
##                main         #78         +/-   ##
===================================================
- Coverage   81.78800%   81.72894%   -0.05907%     
===================================================
  Files            855         855                 
  Lines          33736       33720         -16     
===================================================
- Hits           27592       27559         -33     
- Misses          6144        6161         +17     
Files Coverage Δ
trpc/codec/trpc/trpc_proto_checker.cc 93.54839% <100.00000%> (ø)
trpc/common/config/default_log_conf.cc 50.00000% <ø> (+16.66667%) ⬆️
trpc/common/config/default_log_conf_parser.h 100.00000% <100.00000%> (ø)
trpc/common/config/stdout_sink_conf_parser.h 87.50000% <ø> (-5.35715%) ⬇️
trpc/compressor/common/util.cc 100.00000% <100.00000%> (ø)
trpc/compressor/lz4/lz4_util.cc 67.00000% <ø> (-0.32673%) ⬇️
trpc/runtime/iomodel/reactor/common/socket.h 60.00000% <ø> (ø)
...rpc/runtime/iomodel/reactor/default/reactor_impl.h 100.00000% <ø> (ø)
.../runtime/iomodel/reactor/default/tcp_connection.cc 90.61033% <ø> (-0.04389%) ⬇️
trpc/runtime/iomodel/reactor/fiber/fiber_reactor.h 75.00000% <ø> (ø)
... and 40 more

... and 12 files with indirect coverage changes

@@ -50,7 +50,7 @@ constexpr char kTrpcLogCacheStringDefault[] = "default";
/// @param msg Log message
#define TRPC_LOG(instance, level, msg) \
do { \
const auto& __TRPC_LOG_INSTANCE__ = ::trpc::LogFactory::GetInstance()->Get(); \
const auto& __TRPC_LOG_INSTANCE__ = ::trpc::LogFactory::GetInstance() -> Get(); \

Choose a reason for hiding this comment

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

Get()前后不需要有空格

Copy link
Contributor Author

Choose a reason for hiding this comment

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

已经解决

@trpc-admin trpc-admin merged commit 1f475f3 into trpc-group:main Nov 20, 2023
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