Simplify loggers
This commit is contained in:
parent
e745ef3ad0
commit
e143bf8578
2 changed files with 25 additions and 45 deletions
|
|
@ -156,13 +156,13 @@ impl<
|
|||
if *did_run {
|
||||
let log = recorder.to_string(slog::Level::Info);
|
||||
if !log.is_empty() {
|
||||
self.0.writeln(3, log);
|
||||
self.0.writeln(3, &log);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
self.0.write(3, ".");
|
||||
}
|
||||
Err(_) => self.0.writeln(2, recorder.to_string(slog::Level::Trace)),
|
||||
Err(_) => self.0.writeln(2, &recorder.to_string(slog::Level::Trace)),
|
||||
}
|
||||
result
|
||||
}
|
||||
|
|
@ -195,7 +195,7 @@ impl<
|
|||
let result = (self.1).0.core.run_symbol(&symbol, &log, force).await;
|
||||
self.0.write(
|
||||
3,
|
||||
recorder.to_string(if result.is_ok() {
|
||||
&recorder.to_string(if result.is_ok() {
|
||||
slog::Level::Info
|
||||
} else {
|
||||
slog::Level::Trace
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue