Skip to content

Commit

Permalink
Log requests
Browse files Browse the repository at this point in the history
  • Loading branch information
veeso committed Jul 24, 2023
1 parent 8ad797f commit c073f40
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
# Changelog

- [Changelog](#changelog)
- [0.1.1](#011)
- [0.1.0](#010)

---

## 0.1.1

Released on 24/07/2023

- Log requests

## 0.1.0

Released on 22/07/2023
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tokyo-draft"
version = "0.1.0"
version = "0.1.1"
authors = ["Christian Visintin <christian.visintin@veeso.dev>"]
edition = "2021"
categories = ["network-programming"]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<a href="https://crates.io/crates/tokyo-draft" target="_blank">Crates.io</a>
</p>
<p align="center">Developed by <a href="https://veeso.dev/" target="_blank">@veeso</a></p>
<p align="center">Current version: 0.1.0 (22/07/2023)</p>
<p align="center">Current version: 0.1.1 (24/07/2023)</p>

<p align="center">
<a href="https://opensource.org/license/mit/"
Expand Down
2 changes: 2 additions & 0 deletions src/web/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use std::net::TcpListener;

use actix_web::dev::Server;
use actix_web::middleware::Logger;
use actix_web::web::Data;
use actix_web::{App as ActixApp, HttpServer};

Expand Down Expand Up @@ -44,6 +45,7 @@ impl WebServer {
.service(health_check::check_action)
.service(render::render_action)
.app_data(web_data)
.wrap(Logger::default())
})
.listen(listener)?
.run()
Expand Down

0 comments on commit c073f40

Please sign in to comment.