@@ -12,8 +12,8 @@ use crate::requests::{ClientType, NotarizationSessionRequest, NotarizationSessio
1212
1313pub use wasm_bindgen_rayon:: init_thread_pool;
1414
15+ use crate :: fetch_as_json_string;
1516pub use crate :: request_opt:: VerifyResult ;
16- use crate :: { fetch_as_json_string, setup_tracing_web} ;
1717use futures:: AsyncWriteExt ;
1818use http_body_util:: { BodyExt , Full } ;
1919use hyper:: { body:: Bytes , Request , StatusCode } ;
@@ -25,7 +25,7 @@ use url::Url;
2525use wasm_bindgen:: prelude:: * ;
2626use web_sys:: { Headers , RequestInit , RequestMode } ;
2727
28- use tracing:: { debug, info} ;
28+ use tracing:: { debug, info, trace } ;
2929
3030#[ derive( strum_macros:: EnumMessage , Debug , Clone , Copy ) ]
3131#[ allow( dead_code) ]
@@ -77,24 +77,22 @@ pub async fn prover(
7777 secret_headers : JsValue ,
7878 secret_body : JsValue ,
7979) -> Result < String , JsValue > {
80- info ! ( "target_url: {}" , target_url_str) ;
80+ debug ! ( "target_url: {}" , target_url_str) ;
8181 let target_url = Url :: parse ( target_url_str)
8282 . map_err ( |e| JsValue :: from_str ( & format ! ( "Could not parse target_url: {:?}" , e) ) ) ?;
8383
84- info ! (
84+ debug ! (
8585 "target_url.host: {}" ,
8686 target_url
8787 . host( )
8888 . ok_or( JsValue :: from_str( "Could not get target host" ) ) ?
8989 ) ;
9090 let options: RequestOptions = serde_wasm_bindgen:: from_value ( val)
9191 . map_err ( |e| JsValue :: from_str ( & format ! ( "Could not deserialize options: {:?}" , e) ) ) ?;
92- info ! ( "options.notary_url: {}" , options. notary_url. as_str( ) ) ;
92+ debug ! ( "options.notary_url: {}" , options. notary_url. as_str( ) ) ;
9393
9494 let start_time = Instant :: now ( ) ;
9595
96-
97-
9896 /*
9997 * Connect Notary with websocket
10098 */
@@ -150,7 +148,7 @@ pub async fn prover(
150148 . map_err ( |e| JsValue :: from_str ( & format ! ( "Could not deserialize response: {:?}" , e) ) ) ?;
151149 debug ! ( "Response: {}" , rust_string) ;
152150
153- info ! ( "Notarization response: {:?}" , notarization_response, ) ;
151+ debug ! ( "Notarization response: {:?}" , notarization_response, ) ;
154152 let notary_wss_url = format ! (
155153 "{}://{}{}/notarize?sessionId={}" ,
156154 if notary_ssl { "wss" } else { "ws" } ,
0 commit comments