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

New LogRecord protobuf BLE logging #627

Merged
merged 7 commits into from
Jul 2, 2024
Merged

Conversation

thebentern
Copy link
Contributor

Kissing cousins ticket for meshtastic/firmware#4220

log_record = mesh_pb2.LogRecord()
try:
log_record.ParseFromString(bytes(b))
log_record.message = log_record.message.replace("\n", "")
Copy link
Member

Choose a reason for hiding this comment

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

What about instead of this we not include the new line on the sending side? Looks great otherwise.

@ianmcorvidae
Copy link
Contributor

I think that eventually here we should do something like #607 is doing in that we should publish a pubsub message for log lines. That PR (WIP, of course) only passes along the log line and not the whole LogRecord, though.

I also have a question, which is whether any actual firmware releases went out with the now-legacy logging characteristic. We could possibly exclude it if there weren't any, but I haven't been watching that closely.

Other than my question and the suggestion from geeksville about removing newlines on the send side, I think this is good for now, and we can augment it with the pubsub once we've got something on both the BLE and the streaming interface sides.

@thebentern
Copy link
Contributor Author

Sounds good. I'm moving the newline handling to the device

@geeksville
Copy link
Member

geeksville commented Jul 2, 2024 via email

@ianmcorvidae ianmcorvidae merged commit 22bf34e into master Jul 2, 2024
9 checks passed
@ianmcorvidae ianmcorvidae deleted the protobuf-ble-logging branch July 2, 2024 16:44
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