fix: promote worker event logs from debug to info

This commit is contained in:
2026-05-17 12:02:13 +02:00
parent 2c34eb44e4
commit be0924d463
2 changed files with 4 additions and 2 deletions

View File

@@ -43,13 +43,15 @@ async fn main() {
match result {
Ok(envelope) => {
let event = &envelope.event;
tracing::debug!(?event, "received event");
let event_type = event_payload::EventPayload::from(event).subject();
tracing::info!(event_type, delivery = envelope.delivery_count, "received event");
let n = infra.handlers.notification.handle(event).await;
let f = infra.handlers.federation.handle(event).await;
if n.is_ok() && f.is_ok() {
(envelope.ack)();
tracing::info!(event_type, "event handled ok");
} else {
if let Err(e) = &n {
tracing::error!("notification handler: {e}");

View File

@@ -100,7 +100,7 @@ impl OutboxRelay {
.execute(&mut *tx)
.await?;
tx.commit().await?;
tracing::debug!(seq = row.seq, event_type = row.event_type, "outbox: delivered");
tracing::info!(seq = row.seq, event_type = row.event_type, "outbox: delivered");
}
Err(e) => {
tracing::warn!(seq = row.seq, "outbox: publish failed (will retry): {e}");