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(waku2): add extra logging #8151

Merged
merged 1 commit into from
Nov 10, 2022
Merged

chore(waku2): add extra logging #8151

merged 1 commit into from
Nov 10, 2022

Conversation

richard-ramos
Copy link
Member

@richard-ramos richard-ramos commented Nov 7, 2022

Fixes: #8099

Instead of enabling this only on DEBUG as requested in original issue, I'm doing it on INFO, since debug adds a lot of noise in the geth.log file, while this only logs the envelope hashes and message IDs (there's a point to discuss whether this could expose unwanted data).

Requires:

In go-waku, changes were done in https://github.com/status-im/go-waku/tree/status-go . This branch is meant only for tracing the missing messages and is not going to be merged on master.

Text to search for when tracing a message:

  • waku.store retrieved - Contains an array of WakuMessage hashes of all messages retrieved from store node
  • waku.relay received - Contains hash of WakuMessage received via waku relay
  • waku.relay published - Contains hash of WakuMessage published via waku relay
  • waku.lightpush published - Contains hash of WakuMessage published via waku lightpush
  • received waku2 store message - Indicates that a message retrieved via waku store, was received in status-go
  • publishing message via lightpush - Printed before sending a message with lightpush in status-go
  • publishing message via relay - Printed before sending a message with relay in status-go
  • could not send message - Contains details of any error while sending a message in status-go
  • received new envelope - Indicates that a message arrived to status-go via a subscription
  • processing message - called in handleRetrievedMessages in status-go, contains the WakuMessage hash, and the Status Message IDs contained in that WakuMessage
  • received signal="messages.new" - Indicates which message IDs arrived to status-desktop via the messages.new signal

@status-im-auto
Copy link
Member

status-im-auto commented Nov 7, 2022

Jenkins Builds

Commit #️⃣ Finished (UTC) Duration Platform Result
⁉️ d55fe9d #1 2022-11-07 15:58:54 ~6 min imports 📄log
✔️ d55fe9d #1 2022-11-07 15:59:22 ~7 min linux-cpp 📦pkg
✔️ d55fe9d #1 2022-11-07 16:03:56 ~11 min macos 📦dmg
✔️ d55fe9d #1 2022-11-07 16:06:44 ~14 min linux 📦tgz
✔️ d55fe9d #1 2022-11-07 16:18:22 ~26 min windows 📦exe
⁉️ d55fe9d #1 2022-11-07 16:23:28 ~31 min e2e 📄log
✔️ d55fe9d #2 2022-11-09 18:03:11 ~3 min linux-cpp 📦pkg
✔️ b19d5a8 #4 2022-11-10 15:59:50 ~3 min linux-cpp 📦pkg
⁉️ b19d5a8 #3 2022-11-10 15:59:58 ~4 min imports 📄log
b19d5a8 #3 2022-11-10 16:02:19 ~6 min macos 📄log
b19d5a8 #4 2022-11-10 16:05:56 ~2 min macos 📄log
✔️ b19d5a8 #3 2022-11-10 16:12:48 ~16 min linux 📦tgz
✔️ b19d5a8 #3 2022-11-10 16:14:04 ~18 min windows 📦exe
✔️ b19d5a8 #5 2022-11-10 16:25:28 ~14 min macos 📦dmg
⁉️ b19d5a8 #2 2022-11-10 16:34:02 ~18 min e2e 📄log

@richard-ramos richard-ramos marked this pull request as ready for review November 7, 2022 16:00
Copy link
Contributor

@stefandunca stefandunca left a comment

Choose a reason for hiding this comment

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

Looking forward to seeing it in action

@richard-ramos richard-ramos merged commit 76968df into master Nov 10, 2022
@richard-ramos richard-ramos deleted the chore/extra-logging branch November 10, 2022 19:18
@iurimatias iurimatias added this to the 0.8.0 milestone Nov 14, 2022
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.

Improving logging in Debug mode
5 participants