gourami

[UNMAINTAINED] Activitypub server in Rust
Log | Files | Refs | README | LICENSE

commit 101f9db6eac5f85d30620366fb51b42fbb0e294f
parent ed468817f797cbc688b50bb5f711fbe30ec4055a
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Sat, 18 Apr 2020 11:34:56 -0500

Add logging

Diffstat:
Msrc/main.rs | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/main.rs b/src/main.rs @@ -1,5 +1,6 @@ #[macro_use] extern crate diesel; +#[macro_use] extern crate log; use gourami_social::*; use warp::Filter; @@ -136,7 +137,8 @@ async fn main() { let routes = warp::get().and( home.or(test).or(static_files).or(not_found)) - .or(warp::post().and(create_note.or(delete_note))); + .or(warp::post().and(create_note.or(delete_note))) + .with(warp::log("server")); warp::serve(routes) .run(([127, 0, 0, 1], 3030)) .await;