mirror of
https://github.com/actix/actix-web.git
synced 2024-11-18 15:41:17 +00:00
use env_logger for logger tests
This commit is contained in:
parent
155a636487
commit
39a20fb95d
1 changed files with 2 additions and 0 deletions
|
@ -286,6 +286,7 @@ impl<'a> fmt::Display for FormatDisplay<'a> {
|
|||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
extern crate env_logger;
|
||||
use Body;
|
||||
use super::*;
|
||||
use time;
|
||||
|
@ -294,6 +295,7 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn test_logger() {
|
||||
let _ = env_logger::init();
|
||||
let logger = Logger::new("%% %{User-Agent}i %{X-Test}o %{HOME}e %D test");
|
||||
|
||||
let mut headers = HeaderMap::new();
|
||||
|
|
Loading…
Reference in a new issue