Skip to content

Commit

Permalink
Increase number of logs stored (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
hpeebles authored Nov 15, 2024
1 parent f0a1af5 commit f854ba4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion canister/src/logs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub fn log<S: AsRef<str>>(s: S) {
let now = ic_cdk::api::time() / 1_000_000;
logs.push_back(format!("{now}: {message}"));

while logs.len() > 1000 {
while logs.len() > 5000 {
logs.pop_front();
}
})
Expand Down

0 comments on commit f854ba4

Please sign in to comment.