Closed DonatJR closed 6 years ago
LGTM but if I understand it right,
let result = sub_fn();
if let Some(error) = result.err() {
error!("adbackup finished with error: {}", error.to_string());
}
would print in the error-case nothing to the console? We have to use println!
at this point, right? adbackup-cli.rs#L34
yep, you are right on that one. I only changed to println for code I actually touched :/ will fix
with these new changes the cli tools writes only to stdout and the module writes only to the log-file, please have a look @SailReal
Looks really amazing, thx for the improvement!
PR for #9 I just did the logging / printing change for now, please have a look at it and tell me if you are okay with it or if you maybe have a better idea...