Skip to content

Commit

Permalink
fix: ease logging levels
Browse files Browse the repository at this point in the history
  • Loading branch information
flxzt committed Jan 13, 2022
1 parent 977ff53 commit ed5d665
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/strokesstate/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ impl StrokesState {
render_comp.images = vec![image];
}
Err(e) => {
log::error!(
log::debug!(
"gen_image() failed in regenerate_rendering_current_view() for stroke with key: {:?}, with Err {}",
key,
e
Expand Down
16 changes: 8 additions & 8 deletions src/strokesstate/render_comp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ impl StrokesState {
render_comp.images = vec![image];
}
Err(e) => {
log::error!(
log::debug!(
"gen_image() failed in regenerate_rendering_for_stroke() for stroke with key: {:?}, {}",
key,
e
Expand Down Expand Up @@ -137,7 +137,7 @@ impl StrokesState {
});
}
Err(e) => {
log::error!("stroke.gen_image() failed in regenerate_rendering_for_stroke_threaded() for stroke with key {:?}, with Err {}", key, e);
log::debug!("stroke.gen_image() failed in regenerate_rendering_for_stroke_threaded() for stroke with key {:?}, with Err {}", key, e);
}
}
});
Expand Down Expand Up @@ -193,7 +193,7 @@ impl StrokesState {
}
}
Err(e) => {
log::error!("renderer.gen_image() failed in regenerate_image_new_elem() for stroke with key {:?}, with Err {}", key, e);
log::warn!("renderer.gen_image() failed in regenerate_image_new_elem() for stroke with key {:?}, with Err {}", key, e);
}
}
}
Expand Down Expand Up @@ -240,7 +240,7 @@ impl StrokesState {
}
}
Err(e) => {
log::error!("renderer.gen_image() failed in regenerate_image_new_elem() with Err {}", e);
log::warn!("renderer.gen_image() failed in regenerate_image_new_elem() with Err {}", e);
}
}
}
Expand All @@ -257,7 +257,7 @@ impl StrokesState {
render_comp.images = vec![image];
}
Err(e) => {
log::error!(
log::debug!(
"stroke.gen_image() failed in regenerate_rendering_newest_elem() for stroke with key: {:?}, with Err {}",
key,
e
Expand Down Expand Up @@ -325,7 +325,7 @@ impl StrokesState {
});
}
Err(e) => {
log::error!("renderer.gen_image() failed in regenerate_image_new_elem() for stroke with key {:?}, with Err {}",key, e);
log::warn!("renderer.gen_image() failed in regenerate_image_new_elem() for stroke with key {:?}, with Err {}",key, e);
}
}
}
Expand Down Expand Up @@ -367,7 +367,7 @@ impl StrokesState {
});
}
Err(e) => {
log::error!("renderer.gen_image() failed in regenerate_image_new_elem() for stroke with key {:?} with Err {}", key, e);
log::warn!("renderer.gen_image() failed in regenerate_image_new_elem() for stroke with key {:?} with Err {}", key, e);
}
}
}
Expand All @@ -387,7 +387,7 @@ impl StrokesState {
});
}
Err(e) => {
log::error!(
log::debug!(
"stroke.gen_image() failed in regenerate_rendering_newest_elem() for stroke with key: {:?}, with Err {}",
key,
e
Expand Down
2 changes: 1 addition & 1 deletion src/ui/canvas/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ mod imp {
zoom,
snapshot,
) {
log::error!("pens draw() failed in canvas snapshot() with Err {}", e);
log::debug!("pens draw() failed in canvas snapshot() with Err {}", e);
};

if self.visual_debug.get() {
Expand Down

0 comments on commit ed5d665

Please sign in to comment.