Enable more local logging and disable dependencies'

This commit is contained in:
oxalica 2024-09-09 03:54:28 -04:00
parent ff5b7e60a7
commit 5cd45232f4
3 changed files with 4 additions and 1 deletions

View file

@ -62,6 +62,7 @@ macro_rules! define_from_deser_rejection {
$( $(
impl From<$ty> for ApiError { impl From<$ty> for ApiError {
fn from(rej: $ty) -> Self { fn from(rej: $ty) -> Self {
tracing::debug!(?rej, "rejected");
error_response!( error_response!(
StatusCode::BAD_REQUEST, StatusCode::BAD_REQUEST,
"deserialization", "deserialization",

View file

@ -102,6 +102,8 @@ impl Server {
#[fixture] #[fixture]
fn server() -> Server { fn server() -> Server {
let _ = tracing_subscriber::fmt::try_init();
let mut conn = Connection::open_in_memory().unwrap(); let mut conn = Connection::open_in_memory().unwrap();
Database::maybe_init(&mut conn).unwrap(); Database::maybe_init(&mut conn).unwrap();
conn.execute( conn.execute(

View file

@ -3,5 +3,5 @@ mkShell {
nativeBuildInputs = [ pkg-config sqlite-interactive ]; nativeBuildInputs = [ pkg-config sqlite-interactive ];
buildInputs = [ openssl.dev sqlite.dev ]; buildInputs = [ openssl.dev sqlite.dev ];
env.RUST_LOG = "debug"; env.RUST_LOG = "blahd=debug,blahctl=debug";
} }