Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

feat: log user ID #94

Merged
merged 1 commit into from
Jul 26, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ use anyhow::{bail, Context as _};
use clap::Parser;
use tokio::time::{sleep, timeout};
use tower_http::trace::TraceLayer;
use tracing::{debug, error};
use tracing::{debug, error, info};
use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt};

// TODO: raise this when this is fixed: https://github.com/profianinc/benefice/issues/75
Expand Down Expand Up @@ -369,7 +369,10 @@ async fn root_post(
}
});

debug!("started: {}", uuid);
info!(
"job started. job_id={uuid}, user_id={}",
user.read().await.uid
);
rvolosatovs marked this conversation as resolved.
Show resolved Hide resolved
Ok((StatusCode::SEE_OTHER, [("Location", "/")]))
}

Expand Down