Skip to content

Commit

Permalink
orb-ui: remove logging of each UI event (#84)
Browse files Browse the repository at this point in the history
* orb-ui: remove logging of each UI event

too loud in the logs

* fix security advisory

---------

Co-authored-by: Ryan Butler <thebutlah@gmail.com>
  • Loading branch information
fouge and TheButlah committed Apr 30, 2024
1 parent 4f1805c commit 613254f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion orb-ui/src/engine/diamond.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ impl Runner<DIAMOND_RING_LED_COUNT, DIAMOND_CENTER_LED_COUNT> {
impl EventHandler for Runner<DIAMOND_RING_LED_COUNT, DIAMOND_CENTER_LED_COUNT> {
#[allow(clippy::too_many_lines)]
fn event(&mut self, event: &Event) -> Result<()> {
tracing::info!("UI event: {}", serde_json::to_string(event)?.as_str());
tracing::trace!("UI event: {}", serde_json::to_string(event)?.as_str());
match event {
Event::Bootup => {
self.stop_ring(LEVEL_NOTICE, true);
Expand Down
2 changes: 1 addition & 1 deletion orb-ui/src/engine/pearl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ impl Runner<PEARL_RING_LED_COUNT, PEARL_CENTER_LED_COUNT> {
impl EventHandler for Runner<PEARL_RING_LED_COUNT, PEARL_CENTER_LED_COUNT> {
#[allow(clippy::too_many_lines)]
fn event(&mut self, event: &Event) -> Result<()> {
tracing::info!("UI event: {}", serde_json::to_string(event)?.as_str());
tracing::trace!("UI event: {}", serde_json::to_string(event)?.as_str());
match event {
Event::Bootup => {
self.stop_ring(LEVEL_NOTICE, true);
Expand Down

0 comments on commit 613254f

Please sign in to comment.