mirror of
https://github.com/itsjunetime/tdf.git
synced 2026-06-02 08:01:47 -04:00
Remove logging
This commit is contained in:
+2
-12
@@ -35,7 +35,6 @@ impl<W: Write> Write for DbgWriter<W> {
|
|||||||
fn flush(&mut self) -> std::io::Result<()> {
|
fn flush(&mut self) -> std::io::Result<()> {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
{
|
{
|
||||||
log::debug!("wrote {:?}", self.buf);
|
|
||||||
self.buf.clear();
|
self.buf.clear();
|
||||||
}
|
}
|
||||||
self.w.flush()
|
self.w.flush()
|
||||||
@@ -82,8 +81,6 @@ pub async fn display_kitty_images(
|
|||||||
|
|
||||||
execute!(std::io::stdout(), MoveTo(area.x, area.y)).unwrap();
|
execute!(std::io::stdout(), MoveTo(area.x, area.y)).unwrap();
|
||||||
|
|
||||||
log::debug!("looking at (area {area:?}) img {img:#?}");
|
|
||||||
|
|
||||||
let this_err = match img {
|
let this_err = match img {
|
||||||
MaybeTransferred::NotYet(image) => {
|
MaybeTransferred::NotYet(image) => {
|
||||||
let mut fake_image = Image {
|
let mut fake_image = Image {
|
||||||
@@ -102,8 +99,6 @@ pub async fn display_kitty_images(
|
|||||||
};
|
};
|
||||||
std::mem::swap(image, &mut fake_image);
|
std::mem::swap(image, &mut fake_image);
|
||||||
|
|
||||||
log::debug!("Actually trying to display an image now: {fake_image:?}...");
|
|
||||||
|
|
||||||
let res = run_action(
|
let res = run_action(
|
||||||
Action::TransmitAndDisplay {
|
Action::TransmitAndDisplay {
|
||||||
image: fake_image,
|
image: fake_image,
|
||||||
@@ -114,8 +109,6 @@ pub async fn display_kitty_images(
|
|||||||
)
|
)
|
||||||
.await;
|
.await;
|
||||||
|
|
||||||
log::debug!("And it should've gone through: {res:?}!...");
|
|
||||||
|
|
||||||
match res {
|
match res {
|
||||||
Ok(img_id) => {
|
Ok(img_id) => {
|
||||||
*img = MaybeTransferred::Transferred(img_id);
|
*img = MaybeTransferred::Transferred(img_id);
|
||||||
@@ -125,7 +118,7 @@ pub async fn display_kitty_images(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
MaybeTransferred::Transferred(image_id) => {
|
MaybeTransferred::Transferred(image_id) => {
|
||||||
let e = run_action(
|
run_action(
|
||||||
Action::Display {
|
Action::Display {
|
||||||
image_id: *image_id,
|
image_id: *image_id,
|
||||||
placement_id: *image_id,
|
placement_id: *image_id,
|
||||||
@@ -135,10 +128,7 @@ pub async fn display_kitty_images(
|
|||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
.map(|_| ())
|
.map(|_| ())
|
||||||
.map_err(|e| (None, e.to_string()));
|
.map_err(|e| (None, e.to_string()))
|
||||||
|
|
||||||
log::debug!("Just tried to display: {e:?}");
|
|
||||||
e
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user