mirror of
https://github.com/fafhrd91/actix-net
synced 2025-06-26 15:07:43 +02:00
normalize logs capital letter (#463)
Co-authored-by: Rob Ede <robjtede@icloud.com>
This commit is contained in:
@ -74,7 +74,7 @@ async fn run() -> io::Result<()> {
|
||||
// close connection after file has been copied to TCP stream
|
||||
Ok(())
|
||||
})
|
||||
.map_err(|err| tracing::error!("Service Error: {:?}", err))
|
||||
.map_err(|err| tracing::error!("service error: {:?}", err))
|
||||
})?
|
||||
.workers(2)
|
||||
.run()
|
||||
|
@ -64,7 +64,7 @@ async fn run() -> io::Result<()> {
|
||||
|
||||
// stream error; bail from loop with error
|
||||
Err(err) => {
|
||||
tracing::error!("Stream Error: {:?}", err);
|
||||
tracing::error!("stream error: {:?}", err);
|
||||
return Err(());
|
||||
}
|
||||
}
|
||||
@ -74,7 +74,7 @@ async fn run() -> io::Result<()> {
|
||||
Ok((buf.freeze(), size))
|
||||
}
|
||||
})
|
||||
.map_err(|err| tracing::error!("Service Error: {:?}", err))
|
||||
.map_err(|err| tracing::error!("service error: {:?}", err))
|
||||
.and_then(move |(_, size)| {
|
||||
let num = num2.load(Ordering::SeqCst);
|
||||
tracing::info!("[{}] total bytes read: {}", num, size);
|
||||
|
Reference in New Issue
Block a user