From b5c68d4ddbafeec577e6a56a02723460c9ce4f33 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Sat, 4 Dec 2021 18:16:08 -0700 Subject: *successfully* debugging in production can i get a hell yeah --- src/history.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/history.rs b/src/history.rs index 2e16cae..48ee7db 100644 --- a/src/history.rs +++ b/src/history.rs @@ -40,7 +40,12 @@ impl History { if overall_queue_motion == 0 { return None; } - gloo::console::log!("time", overall_time_elapsed, "motion", overall_queue_motion); + gloo::console::log!( + "time", + overall_time_elapsed.to_string(), + "motion", + overall_queue_motion + ); let duration_per_step = overall_time_elapsed / overall_queue_motion as i32; let remaining_duration = duration_per_step * last_size as i32; let completion_time = last_time + remaining_duration; -- cgit v1.2.3