-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
task: some bugfixs #112
task: some bugfixs #112
Conversation
3a111f6
to
4d237e2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
vmm/task/src/container.rs
Outdated
Ok(file) => { | ||
let mut lines = BufReader::new(file).lines(); | ||
while let Ok(Some(line)) = lines.next_line().await { | ||
// Retrieve the last runtime error | ||
match serde_json::from_str::<Log>(&line) { | ||
Err(err) => return other!("{}: unable to parse log msg: {}", msg, err), | ||
Err(e) => return Err(other!("unable to parse log msg: {}", e)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest we can search for the most recent error-level log information in the log file by moving backward from the end of the file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
70dccf8
to
1a94d13
Compare
Signed-off-by: Zhang Tianyang <[email protected]>
Signed-off-by: Zhang Tianyang <[email protected]>
Signed-off-by: Zhang Tianyang <[email protected]>
1a94d13
to
256a492
Compare
LGTM |
close_io