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

Commit

Permalink
feat: log user ID
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Volosatovs <[email protected]>
  • Loading branch information
rvolosatovs committed Jul 26, 2022
1 parent e166c8c commit b382e33
Showing 1 changed file with 5 additions and 2 deletions.
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
);
Ok((StatusCode::SEE_OTHER, [("Location", "/")]))
}

Expand Down

0 comments on commit b382e33

Please sign in to comment.