mirror of
https://github.com/Blah-IM/blahrs.git
synced 2025-05-01 08:41:09 +00:00
Enable more local logging and disable dependencies'
This commit is contained in:
parent
ff5b7e60a7
commit
5cd45232f4
3 changed files with 4 additions and 1 deletions
|
@ -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",
|
||||||
|
|
|
@ -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(
|
||||||
|
|
|
@ -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";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue