Skip to content

Integrate Ui with logger.#82

Merged
floitsch merged 2 commits into
mainfrom
floitsch/logger-ui
Oct 29, 2025
Merged

Integrate Ui with logger.#82
floitsch merged 2 commits into
mainfrom
floitsch/logger-ui

Conversation

@floitsch
Copy link
Copy Markdown
Member

No description provided.

@floitsch floitsch requested a review from kasperl September 21, 2025 17:01
Comment thread src/ui.toit Outdated

// Printing the constructed message may block, so we have to
// be careful and clear the buffer before doing so. Otherwise,
// another task might start using the non-empty buffer and
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

How? The buffer is completely local?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

My fault. I copied most of this code from the default-target implementation (https://github.com/toitlang/toit/blob/2bc2fc854f0c69bdf9b3022b172b284433557a9d/lib/log/target.toit#L30) which has the buffer as a field.
done.

Copy link
Copy Markdown
Member

@kasperl kasperl left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@floitsch floitsch merged commit 79660a5 into main Oct 29, 2025
7 checks passed
@floitsch floitsch deleted the floitsch/logger-ui branch October 29, 2025 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants