Skip to content

Commit

Permalink
Merge pull request #412 from gdamjan/master
Browse files Browse the repository at this point in the history
remove the timestamp from the default logger middleware
  • Loading branch information
fafhrd91 authored Jul 24, 2018
2 parents f213867 + d3b12d8 commit b9586b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
### Fixed

* Fixed default_resource 'not yet implemented' panic #410
* removed the timestamp from the default logger middleware

* Add `CookieSessionBackend::http_only` method to set `HttpOnly` directive of cookies

Expand Down
6 changes: 3 additions & 3 deletions src/middleware/logger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use middleware::{Finished, Middleware, Started};
/// default format:
///
/// ```ignore
/// %a %t "%r" %s %b "%{Referer}i" "%{User-Agent}i" %T
/// %a "%r" %s %b "%{Referer}i" "%{User-Agent}i" %T
/// ```
/// ```rust
/// # extern crate actix_web;
Expand Down Expand Up @@ -94,7 +94,7 @@ impl Default for Logger {
/// Create `Logger` middleware with format:
///
/// ```ignore
/// %a %t "%r" %s %b "%{Referer}i" "%{User-Agent}i" %T
/// %a "%r" %s %b "%{Referer}i" "%{User-Agent}i" %T
/// ```
fn default() -> Logger {
Logger {
Expand Down Expand Up @@ -143,7 +143,7 @@ struct Format(Vec<FormatText>);
impl Default for Format {
/// Return the default formatting style for the `Logger`:
fn default() -> Format {
Format::new(r#"%a %t "%r" %s %b "%{Referer}i" "%{User-Agent}i" %T"#)
Format::new(r#"%a "%r" %s %b "%{Referer}i" "%{User-Agent}i" %T"#)
}
}

Expand Down

0 comments on commit b9586b3

Please sign in to comment.