Add trace log for each line read
This commit is contained in:
parent
5d32a8924c
commit
f7729365e7
1 changed files with 1 additions and 0 deletions
|
@ -34,6 +34,7 @@ fn do_read_stdin(tx: &Sender<Vec<u8>>) -> Result<(), String> {
|
|||
let pos = id + 1;
|
||||
let mut line = Vec::with_capacity(pos);
|
||||
line.extend_from_slice(&line_buffer[..pos]);
|
||||
log::trace!("new line: {:?}", &line);
|
||||
tx.send(line).unwrap();
|
||||
line_buffer.drain(..pos);
|
||||
}
|
||||
|
|
Reference in a new issue