This commit is contained in:
Anthony J. Martinez 2021-04-29 17:47:10 +02:00
parent 0582416ca1
commit 229c2006a8
1 changed files with 2 additions and 2 deletions

View File

@ -101,9 +101,9 @@ async fn post_handler(req: Request<Body>) -> Result<Response<Body>> {
let engine = req.data::<Arc<Engine>>().unwrap();
let topic = req.param("topic").unwrap();
let post = req.param("post").unwrap();
info!("Handling topic post: '/{}/{}'", &topic, &post);
info!("Handling topic post: '/{}/posts/{}'", &topic, &post);
let output = engine.render_post(topic, post)
.with_context(|| format!("failed to render: '{}/{}'", topic, post))?;
.with_context(|| format!("failed to render: '{}/posts/{}'", topic, post))?;
Ok(Response::new(Body::from(output)))
}