mirror of
https://github.com/redlib-org/redlib.git
synced 2025-04-22 23:09:14 +00:00
Fix logging
This commit is contained in:
parent
0a69937238
commit
47d01a0dca
1 changed files with 5 additions and 1 deletions
|
@ -129,6 +129,8 @@ async fn main() -> tide::Result<()> {
|
||||||
|
|
||||||
let listener = format!("{}:{}", address, port);
|
let listener = format!("{}:{}", address, port);
|
||||||
|
|
||||||
|
println!("Starting Libreddit...");
|
||||||
|
|
||||||
// Start HTTP server
|
// Start HTTP server
|
||||||
let mut app = tide::new();
|
let mut app = tide::new();
|
||||||
|
|
||||||
|
@ -244,7 +246,9 @@ async fn main() -> tide::Result<()> {
|
||||||
// Default service in case no routes match
|
// Default service in case no routes match
|
||||||
app.at("*").get(|req| error(req, "Nothing here".to_string()));
|
app.at("*").get(|req| error(req, "Nothing here".to_string()));
|
||||||
|
|
||||||
|
println!("Running Libreddit v{} on {}!", env!("CARGO_PKG_VERSION"), listener);
|
||||||
|
|
||||||
app.listen(&listener).await?;
|
app.listen(&listener).await?;
|
||||||
|
|
||||||
Ok(println!("Running Libreddit v{} on {}!", env!("CARGO_PKG_VERSION"), listener))
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue