improve logs
This commit is contained in:
parent
1d05bc5e89
commit
334b1c21b3
@ -145,7 +145,7 @@ pub async fn get_subusers(
|
|||||||
.all(db_replica.as_ref())
|
.all(db_replica.as_ref())
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
trace!("Subusers are: {:?}", subusers);
|
trace!("Subusers are: {}", json!(subusers));
|
||||||
|
|
||||||
// Now return the list
|
// Now return the list
|
||||||
let response_json = json!({
|
let response_json = json!({
|
||||||
|
@ -20,7 +20,7 @@ use fstrings::{f, format_args_f};
|
|||||||
use hashbrown::HashMap;
|
use hashbrown::HashMap;
|
||||||
use influxdb2::api::query::FluxRecord;
|
use influxdb2::api::query::FluxRecord;
|
||||||
use influxdb2::models::Query;
|
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::ColumnTrait;
|
||||||
use migration::sea_orm::EntityTrait;
|
use migration::sea_orm::EntityTrait;
|
||||||
use migration::sea_orm::QueryFilter;
|
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)
|
|> 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());
|
let query = Query::new(query.to_string());
|
||||||
trace!("Query to db is: {:?}", query);
|
trace!("Query to db is: {:?}", query);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user