aboutsummaryrefslogtreecommitdiffstats
path: root/license-generator/src
diff options
context:
space:
mode:
authorTeddy Wing2018-11-10 16:08:41 +0100
committerTeddy Wing2018-11-10 16:08:41 +0100
commit659fc38bc2197091a062d6f1d08790cbda586ace (patch)
tree4fced1000d2c57dacc0d79d2d7e7a7c20b661883 /license-generator/src
parentbe3cbacd6d5b5195b7b63816179eb6b3743a2157 (diff)
downloaddome-key-web-659fc38bc2197091a062d6f1d08790cbda586ace.tar.bz2
main(): Write request debug output to log file
Stop writing this information to the response text and instead put it in the program log file. Don't want to send back unnecessary information when testing the Paddle webhook.
Diffstat (limited to 'license-generator/src')
-rw-r--r--license-generator/src/main.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/license-generator/src/main.rs b/license-generator/src/main.rs
index 2211d6e..7d89723 100644
--- a/license-generator/src/main.rs
+++ b/license-generator/src/main.rs
@@ -54,18 +54,15 @@ fn main() -> Result<()> {
params.push_str(format!("{}: {}\n", key, val).as_str());
}
- write!(&mut req.stdout(), "\n\n{}", params)
- .unwrap_or(());
+ info!("{}", params);
let mut stdin = String::new();
req.stdin().read_to_string(&mut stdin).unwrap();
- write!(&mut req.stdout(), "\n\nstdin: {}\n", stdin)
- .unwrap_or(());
+ info!("{}", stdin);
let is_verified = request::verified(&stdin);
- write!(&mut req.stdout(), "\n{:?}\n", is_verified)
- .unwrap_or(());
+ info!("{:?}", is_verified);
});
Ok(())