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

style: improve zipper log readability #626

Merged
merged 5 commits into from
Sep 22, 2023
Merged

Conversation

wujunzhuo
Copy link
Collaborator

wujunzhuo@wujunzhuo-macbook yomo % yomo serve --config example/config.yaml
ℹ️   Running YoMo-Zipper...
time=2023-09-22T10:16:42.036+08:00 level=INFO msg="using config file" component=zipper zipper_name=Service file_path=example/config.yaml
time=2023-09-22T10:16:42.036+08:00 level=INFO msg="Listening SIGUSR1, SIGUSR2, SIGTERM/SIGINT..."
time=2023-09-22T10:16:42.037+08:00 level=INFO msg="zipper is up and running" component=zipper zipper_name=Service zipper_addr=[::]:9000 pid=15846 quic="[v1 v2]" auth_name=[none]
time=2023-09-22T10:16:42.106+08:00 level=INFO msg="client connected" component=zipper zipper_name=Service conn_id=TJEJJfuAxPKnYDhMyQeUa conn_name=sink remote_addr=127.0.0.1:50988 client_type=StreamFunction
time=2023-09-22T10:16:43.207+08:00 level=INFO msg="client connected" component=zipper zipper_name=Service conn_id=W_b6xrGOS0OlbfGWyz16s conn_name=source remote_addr=127.0.0.1:59560 client_type=Source
time=2023-09-22T10:16:43.208+08:00 level=INFO msg="no observed" component=zipper zipper_name=Service conn_id=W_b6xrGOS0OlbfGWyz16s conn_name=source tag=51 data_length=17
time=2023-09-22T10:16:44.209+08:00 level=INFO msg="no observed" component=zipper zipper_name=Service conn_id=W_b6xrGOS0OlbfGWyz16s conn_name=source tag=51 data_length=17
time=2023-09-22T10:16:45.211+08:00 level=INFO msg="no observed" component=zipper zipper_name=Service conn_id=W_b6xrGOS0OlbfGWyz16s conn_name=source tag=51 data_length=17
time=2023-09-22T10:16:46.211+08:00 level=INFO msg="no observed" component=zipper zipper_name=Service conn_id=W_b6xrGOS0OlbfGWyz16s conn_name=source tag=51 data_length=17
time=2023-09-22T10:16:46.949+08:00 level=INFO msg="client connected" component=zipper zipper_name=Service conn_id=sawfDTIRTxrbfo2KC1rid conn_name=sfn-app remote_addr=127.0.0.1:51081 client_type=StreamFunction
time=2023-09-22T10:16:47.212+08:00 level=INFO msg="data routing" component=zipper zipper_name=Service conn_id=W_b6xrGOS0OlbfGWyz16s conn_name=source tid=44e1d9d199f29a9fd30dcd40f298e043 sid=3529e1f69d7cc544 tag=51 data_length=17 to_id=sawfDTIRTxrbfo2KC1rid to_name=sfn-app
time=2023-09-22T10:16:47.214+08:00 level=INFO msg="data routing" component=zipper zipper_name=Service conn_id=sawfDTIRTxrbfo2KC1rid conn_name=sfn-app tid=44e1d9d199f29a9fd30dcd40f298e043 sid=aa2954c43cdfaed2 tag=52 data_length=17 to_id=TJEJJfuAxPKnYDhMyQeUa to_name=sink
time=2023-09-22T10:16:48.214+08:00 level=INFO msg="data routing" component=zipper zipper_name=Service conn_id=W_b6xrGOS0OlbfGWyz16s conn_name=source tid=3fca64fc891db8a99b52f32623cd32ee sid=e4460707ecb1aa32 tag=51 data_length=17 to_id=sawfDTIRTxrbfo2KC1rid to_name=sfn-app
time=2023-09-22T10:16:48.214+08:00 level=INFO msg="data routing" component=zipper zipper_name=Service conn_id=sawfDTIRTxrbfo2KC1rid conn_name=sfn-app tid=3fca64fc891db8a99b52f32623cd32ee sid=e423466d41368d5c tag=52 data_length=17 to_id=TJEJJfuAxPKnYDhMyQeUa to_name=sink
time=2023-09-22T10:16:49.215+08:00 level=INFO msg="data routing" component=zipper zipper_name=Service conn_id=W_b6xrGOS0OlbfGWyz16s conn_name=source tid=5f698e322540aaf11e32c3145a588d84 sid=fded83a2d0cefdbc tag=51 data_length=17 to_id=sawfDTIRTxrbfo2KC1rid to_name=sfn-app
time=2023-09-22T10:16:49.216+08:00 level=INFO msg="data routing" component=zipper zipper_name=Service conn_id=sawfDTIRTxrbfo2KC1rid conn_name=sfn-app tid=5f698e322540aaf11e32c3145a588d84 sid=9ffe99e30ee2ba1e tag=52 data_length=17 to_id=TJEJJfuAxPKnYDhMyQeUa to_name=sink
time=2023-09-22T10:16:50.216+08:00 level=INFO msg="data routing" component=zipper zipper_name=Service conn_id=W_b6xrGOS0OlbfGWyz16s conn_name=source tid=95e36786b082ce776fd28e74d06cd06d sid=0511d2b9778ac0b7 tag=51 data_length=17 to_id=sawfDTIRTxrbfo2KC1rid to_name=sfn-app

@vercel
Copy link

vercel bot commented Sep 22, 2023

@wujunzhuo is attempting to deploy a commit to the YoMo Team on Vercel.

A member of the Team first needs to authorize it.

@codecov
Copy link

codecov bot commented Sep 22, 2023

Codecov Report

Merging #626 (3179d45) into master (a3f7bac) will decrease coverage by 0.30%.
The diff coverage is 94.73%.

@@            Coverage Diff             @@
##           master     #626      +/-   ##
==========================================
- Coverage   64.82%   64.52%   -0.30%     
==========================================
  Files          34       34              
  Lines        2496     2475      -21     
==========================================
- Hits         1618     1597      -21     
  Misses        775      775              
  Partials      103      103              
Files Changed Coverage Δ
core/client.go 66.18% <ø> (ø)
core/context.go 64.55% <ø> (-3.63%) ⬇️
core/server.go 65.65% <94.44%> (-0.69%) ⬇️
zipper.go 72.41% <100.00%> (-1.78%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

core/server.go Outdated Show resolved Hide resolved
@wujunzhuo
Copy link
Collaborator Author

wujunzhuo@wujunzhuo-macbook yomo % yomo serve --config example/config.yaml
ℹ️   Running YoMo-Zipper...
time=2023-09-22T10:16:42.036+08:00 level=INFO msg="using config file" component=zipper zipper_name=Service file_path=example/config.yaml
time=2023-09-22T10:16:42.036+08:00 level=INFO msg="Listening SIGUSR1, SIGUSR2, SIGTERM/SIGINT..."
time=2023-09-22T10:16:42.037+08:00 level=INFO msg="zipper is up and running" component=zipper zipper_name=Service zipper_addr=[::]:9000 pid=15846 quic="[v1 v2]" auth_name=[none]
time=2023-09-22T10:16:42.106+08:00 level=INFO msg="client connected" component=zipper zipper_name=Service conn_id=TJEJJfuAxPKnYDhMyQeUa conn_name=sink remote_addr=127.0.0.1:50988 client_type=StreamFunction
time=2023-09-22T10:16:43.207+08:00 level=INFO msg="client connected" component=zipper zipper_name=Service conn_id=W_b6xrGOS0OlbfGWyz16s conn_name=source remote_addr=127.0.0.1:59560 client_type=Source
time=2023-09-22T10:16:43.208+08:00 level=INFO msg="no observed" component=zipper zipper_name=Service conn_id=W_b6xrGOS0OlbfGWyz16s conn_name=source tag=51 data_length=17
time=2023-09-22T10:16:44.209+08:00 level=INFO msg="no observed" component=zipper zipper_name=Service conn_id=W_b6xrGOS0OlbfGWyz16s conn_name=source tag=51 data_length=17
time=2023-09-22T10:16:45.211+08:00 level=INFO msg="no observed" component=zipper zipper_name=Service conn_id=W_b6xrGOS0OlbfGWyz16s conn_name=source tag=51 data_length=17
time=2023-09-22T10:16:46.211+08:00 level=INFO msg="no observed" component=zipper zipper_name=Service conn_id=W_b6xrGOS0OlbfGWyz16s conn_name=source tag=51 data_length=17
time=2023-09-22T10:16:46.949+08:00 level=INFO msg="client connected" component=zipper zipper_name=Service conn_id=sawfDTIRTxrbfo2KC1rid conn_name=sfn-app remote_addr=127.0.0.1:51081 client_type=StreamFunction
time=2023-09-22T10:16:47.212+08:00 level=INFO msg="data routing" component=zipper zipper_name=Service conn_id=W_b6xrGOS0OlbfGWyz16s conn_name=source tid=44e1d9d199f29a9fd30dcd40f298e043 sid=3529e1f69d7cc544 tag=51 data_length=17 to_id=sawfDTIRTxrbfo2KC1rid to_name=sfn-app
time=2023-09-22T10:16:47.214+08:00 level=INFO msg="data routing" component=zipper zipper_name=Service conn_id=sawfDTIRTxrbfo2KC1rid conn_name=sfn-app tid=44e1d9d199f29a9fd30dcd40f298e043 sid=aa2954c43cdfaed2 tag=52 data_length=17 to_id=TJEJJfuAxPKnYDhMyQeUa to_name=sink
time=2023-09-22T10:16:48.214+08:00 level=INFO msg="data routing" component=zipper zipper_name=Service conn_id=W_b6xrGOS0OlbfGWyz16s conn_name=source tid=3fca64fc891db8a99b52f32623cd32ee sid=e4460707ecb1aa32 tag=51 data_length=17 to_id=sawfDTIRTxrbfo2KC1rid to_name=sfn-app
time=2023-09-22T10:16:48.214+08:00 level=INFO msg="data routing" component=zipper zipper_name=Service conn_id=sawfDTIRTxrbfo2KC1rid conn_name=sfn-app tid=3fca64fc891db8a99b52f32623cd32ee sid=e423466d41368d5c tag=52 data_length=17 to_id=TJEJJfuAxPKnYDhMyQeUa to_name=sink
time=2023-09-22T10:16:49.215+08:00 level=INFO msg="data routing" component=zipper zipper_name=Service conn_id=W_b6xrGOS0OlbfGWyz16s conn_name=source tid=5f698e322540aaf11e32c3145a588d84 sid=fded83a2d0cefdbc tag=51 data_length=17 to_id=sawfDTIRTxrbfo2KC1rid to_name=sfn-app
time=2023-09-22T10:16:49.216+08:00 level=INFO msg="data routing" component=zipper zipper_name=Service conn_id=sawfDTIRTxrbfo2KC1rid conn_name=sfn-app tid=5f698e322540aaf11e32c3145a588d84 sid=9ffe99e30ee2ba1e tag=52 data_length=17 to_id=TJEJJfuAxPKnYDhMyQeUa to_name=sink
time=2023-09-22T10:16:50.216+08:00 level=INFO msg="data routing" component=zipper zipper_name=Service conn_id=W_b6xrGOS0OlbfGWyz16s conn_name=source tid=95e36786b082ce776fd28e74d06cd06d sid=0511d2b9778ac0b7 tag=51 data_length=17 to_id=sawfDTIRTxrbfo2KC1rid to_name=sfn-app

@wujunzhuo wujunzhuo merged commit b0055e3 into yomorun:master Sep 22, 2023
3 of 4 checks passed
@wujunzhuo wujunzhuo deleted the log branch September 22, 2023 03:50
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.

3 participants