improve logs

This commit is contained in:
Bryan Stitt 2023-06-08 11:30:48 -07:00
parent 1d05bc5e89
commit 334b1c21b3
2 changed files with 3 additions and 3 deletions

View File

@ -145,7 +145,7 @@ pub async fn get_subusers(
.all(db_replica.as_ref())
.await?;
trace!("Subusers are: {:?}", subusers);
trace!("Subusers are: {}", json!(subusers));
// Now return the list
let response_json = json!({

View File

@ -20,7 +20,7 @@ use fstrings::{f, format_args_f};
use hashbrown::HashMap;
use influxdb2::api::query::FluxRecord;
use influxdb2::models::Query;
use log::{error, info, warn};
use log::{debug, error, info, trace, warn};
use migration::sea_orm::ColumnTrait;
use migration::sea_orm::EntityTrait;
use migration::sea_orm::QueryFilter;
@ -191,7 +191,7 @@ pub async fn query_user_stats<'a>(
|> sort(columns: ["_time", "_measurement", "archive_needed", "chain_id", "error_response", "method", "rpc_secret_key_id"], desc: true)
"#);
debug!("Raw query to db is: {:?}", query);
debug!("Raw query to db is: {:#?}", query);
let query = Query::new(query.to_string());
trace!("Query to db is: {:?}", query);