aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Edgecumbe <git@esotericnonsense.com>2019-10-25 08:56:46 +0200
committerDaniel Edgecumbe <git@esotericnonsense.com>2019-10-25 08:56:46 +0200
commit08fdb42084d97e664707ecbf34eafe3cdd8fb88a (patch)
treeedeac1722b86241714abf51ad2dc075c6688d852
parent3012a3f46334dcbd968b26ab44ec056a4eb953e1 (diff)
Tweak some logging
-rw-r--r--src/main.rs15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/main.rs b/src/main.rs
index 9ef44f6..d82fb1c 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -78,7 +78,8 @@ fn get_session_token() -> Result<String, AnyError> {
let appheader = format!("{}", rand::random::<u128>());
let login_request_form = LoginRequestForm { username, password };
- info!("{:?}", login_request_form);
+
+ info!("LoginRequest ...");
let login_response: LoginResponse = cl
.post(CERTLOGIN_URI)
.header("X-Application", appheader)
@@ -86,7 +87,7 @@ fn get_session_token() -> Result<String, AnyError> {
.send()?
.json()?;
- info!("{:?}", login_response);
+ info!("LoginResponse: {:?}", login_response.loginStatus);
match login_response.sessionToken {
Some(token) => Ok(token),
@@ -124,7 +125,12 @@ fn main() -> Result<(), AnyError> {
10,
None,
)?;
- info!("{:?}", catalogues);
+ for catalogue in catalogues.iter() {
+ info!(
+ "{} {} {:?}",
+ catalogue.marketId, catalogue.marketName, catalogue.totalMatched
+ );
+ }
let market_ids: Vec<MarketId> = catalogues
.iter()
@@ -145,8 +151,7 @@ fn main() -> Result<(), AnyError> {
None,
None,
)?;
-
- info!("{:?}", books);
+ // info!("{:?}", books);
let s: String = serde_json::to_string(&books).expect("whatever");
println!("{}", s);