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

chore: Simple modification of hard-to-read logs #3000

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

elecbug
Copy link

@elecbug elecbug commented Oct 9, 2024

The accepted log of the existing upgrader module felt a little messy

{"level":"debug","ts":"2024-09-06T02:23:14.218Z","logger":"upgrader","caller":"upgrader/listener.go:134","msg":"listener <stream.Listener[TCP] /ip4/10.10.23.38/tcp/20000> accepted connection: <stream.Conn[TCP] /ip4/10.10.23.38/tcp/20000 (12D3KooW9wSGpoaE6CUNSnBpczCWa4H2up12ZG45soDqYU7MPAsc) <-> /ip4/10.10.22.253/tcp/20000 (12D3KooWBLtMMiRVPvULTeQCbhX8FDAGGPqT2o4T7EZbgaumyXu2)>"}
{"level":"debug","ts":"2024-10-09T11:56:51.750+0900","logger":"upgrader","caller":"upgrader/listener.go:134","msg":"listener <stream.Listener[TCP] /ip4/0.0.0.0/tcp/35045> accepted connection: /ip4/127.0.0.1/tcp/35045 <---> /ip4/127.0.0.1/tcp/44703"}

I modified the log in a form similar to what other upgrader modules' logs take.

image

  • Some look of the results I ran locally. Tidier to look at.

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