printer on atproto
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

log jobs

dawn 7c6c4f54 c2db6c8a

+13
+13
src/main.rs
··· 54 54 Text(TextContent), 55 55 } 56 56 57 + impl JobContent { 58 + fn kind(&self) -> &'static str { 59 + match self { 60 + JobContent::Text(_) => "text", 61 + } 62 + } 63 + } 64 + 57 65 #[derive(Deserialize, Serialize, Debug)] 58 66 #[serde(rename_all = "camelCase")] 59 67 struct TextContent { ··· 190 198 191 199 fn handle_jobs(mut printer: Printer, mut task_rx: TaskRx) -> Result<()> { 192 200 while let Some(task) = task_rx.blocking_recv() { 201 + tracing::info!( 202 + id = task.identifier, 203 + kind = task.job.content.kind(), 204 + "handling job" 205 + ); 193 206 match task.job.content { 194 207 JobContent::Text(c) if !c.text.is_empty() => { 195 208 printer