MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / read_log

Method read_log

crates/testing/src/modules.rs:156–168  ·  view source on GitHub ↗
(&self, size: Option<u32>)

Source from the content-addressed store, hash-verified

154 }
155
156 pub async fn read_log(&self, size: Option<u32>) -> String {
157 let bytes = self
158 .client
159 .module()
160 .database_logger()
161 .tail(size, false)
162 .await
163 .unwrap()
164 .try_collect::<BytesMut>()
165 .await
166 .expect("failed to collect log stream");
167 String::from_utf8(bytes.into()).unwrap()
168 }
169}
170
171pub struct CompiledModule {

Callers 2

count_tableMethod · 0.80
read_logsFunction · 0.80

Calls 4

tailMethod · 0.80
database_loggerMethod · 0.80
unwrapMethod · 0.45
moduleMethod · 0.45

Tested by 1

read_logsFunction · 0.64