Skip to content

Commit

Permalink
Merge pull request #41 from Quest-Protocol/add-tracing
Browse files Browse the repository at this point in the history
add tracing
  • Loading branch information
friendlymatthew authored Jan 10, 2024
2 parents 208af8a + 70759ad commit 4a768ba
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 0 deletions.
69 changes: 69 additions & 0 deletions tx-signing-service/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions tx-signing-service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,7 @@ ed25519-dalek = "1"
rand = "^0.7"
base64 = "0.21.5"
borsh = "0.9"
tracing = "0.1.40"
tracing-subscriber = "0.3.18"

[dev-dependencies]
9 changes: 9 additions & 0 deletions tx-signing-service/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ use std::convert::Infallible;
use std::fmt::Debug;
use thiserror::Error;
use warp::Filter;
use tracing::{error, Level};
use tracing_subscriber::fmt;

mod graphql_service;
mod internal;
Expand Down Expand Up @@ -146,6 +148,13 @@ async fn handle_errors(err: warp::Rejection) -> Result<impl warp::Reply, warp::R

#[tokio::main]
async fn main() {
fmt::Subscriber::builder()
.with_max_level(Level::INFO)
.with_writer(std::io::stdout)
.fmt_fields(fmt::format::PrettyFields::new())
.init();


let validate = warp::path!("v1" / "validate" / String / String)
.map(|account_id, quest_id| QuestValidationInfo {
account_id,
Expand Down

0 comments on commit 4a768ba

Please sign in to comment.