Logo
Explore Help
Sign In
gaspersic/solana
1
0
Fork 0
You've already forked solana
Code Issues Pull Requests Projects Releases Wiki Activity
Files
ddf019c1a421fb6dff6b97c1c39d6188cf120a7b
solana/runtime/src/log_collector.rs

19 lines
358 B
Rust
Raw Normal View History

RPC simulateTransaction endpoint now returns program log output (#10432)
2020-06-06 10:18:28 -07:00
use std::cell::RefCell;
#[derive(Default)]
pub struct LogCollector {
messages: RefCell<Vec<String>>,
}
impl LogCollector {
pub fn log(&self, message: &str) {
self.messages.borrow_mut().push(message.to_string())
}
Route all loader messages to log collector (#10528)
2020-06-13 13:20:08 -07:00
}
Store program logs in blockstore / bigtable (TransactionWithStatusMeta) (#12678) (#12735) * introduce store program logs in blockstore / bigtable * fix test, transaction logs created for successful transactions * fix test for legacy bincode implementation around log_messages * only api nodes should record logs * truncate transaction logs to 100KB * refactor log truncate for improved coverage (cherry picked from commit 8f5431551eb2107fa3a50de6a21a3a8ed8b0bbb3) Co-authored-by: Josh <josh.hundley@gmail.com>
2020-10-08 20:19:26 +00:00
Route all loader messages to log collector (#10528)
2020-06-13 13:20:08 -07:00
impl Into<Vec<String>> for LogCollector {
fn into(self) -> Vec<String> {
RPC simulateTransaction endpoint now returns program log output (#10432)
2020-06-06 10:18:28 -07:00
self.messages.into_inner()
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.2 Page: 631ms Template: 29ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses