diff --git a/rs/bitcoin/ckbtc/minter/src/dashboard.rs b/rs/bitcoin/ckbtc/minter/src/dashboard.rs index 3cc21b240c8..a799390bb56 100644 --- a/rs/bitcoin/ckbtc/minter/src/dashboard.rs +++ b/rs/bitcoin/ckbtc/minter/src/dashboard.rs @@ -183,11 +183,6 @@ pub fn build_dashboard() -> Vec {

Retrieve BTC principals pending

-

Logs

- - - {} -
PriorityTimestampLocationMessage
", @@ -203,7 +198,6 @@ pub fn build_dashboard() -> Vec { build_account_to_utxos_table(), build_update_balance_principals(), build_retrieve_btc_principals(), - display_logs(), ); html.into_bytes() } @@ -566,46 +560,6 @@ pub fn build_retrieve_btc_principals() -> String { }) } -fn display_logs() -> String { - use crate::logs::{P0, P1}; - use ic_canister_log::{export, LogEntry}; - - fn display_entry(buf: &mut Vec, tag: &str, e: &LogEntry) { - write!( - buf, - "{}{}{}:{}{}", - tag, e.timestamp, e.file, e.line, e.message - ) - .unwrap() - } - - let p0 = export(&P0); - let p1 = export(&P1); - - let mut i0 = 0; - let mut i1 = 0; - - with_utf8_buffer(|buf| { - // Merge sorted log entries with different priorities. - while i0 < p0.len() && i1 < p1.len() { - if p0[i0].timestamp <= p1[i1].timestamp { - display_entry(buf, "P0", &p0[i0]); - i0 += 1; - } else { - display_entry(buf, "P1", &p1[i1]); - i1 += 1; - } - } - - for e in p0[i0..].iter() { - display_entry(buf, "P0", e); - } - for e in p1[i1..].iter() { - display_entry(buf, "P1", e); - } - }) -} - fn txid_link(txid: &Txid) -> String { txid_link_on(txid, state::read_state(|s| s.btc_network)) }