mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Use the correct log crate and setup env_logger in main.
This commit is contained in:
parent
78665336e6
commit
00e8e5f77d
35 changed files with 95 additions and 16 deletions
|
@ -193,7 +193,7 @@ reason: \"certificate verify failed\" }]))";
|
|||
if !req.headers().has::<AcceptEncoding>() {
|
||||
req.headers_mut().set_raw("Accept-Encoding".to_owned(), vec![b"gzip, deflate".to_vec()]);
|
||||
}
|
||||
if log_enabled!(log::INFO) {
|
||||
if log_enabled!(log::LogLevel::Info) {
|
||||
info!("{}", load_data.method);
|
||||
for header in req.headers().iter() {
|
||||
info!(" - {}", header);
|
||||
|
@ -257,7 +257,7 @@ reason: \"certificate verify failed\" }]))";
|
|||
|
||||
// Dump headers, but only do the iteration if info!() is enabled.
|
||||
info!("got HTTP response {}, headers:", response.status);
|
||||
if log_enabled!(log::INFO) {
|
||||
if log_enabled!(log::LogLevel::Info) {
|
||||
for header in response.headers.iter() {
|
||||
info!(" - {}", header);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue