1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-06-02 16:40:51 +00:00

fix(utils): reduce log level of errors in utils. (#1730)

Have reduced the log level when we fail to execute a command since this
is happening a lot more that expected, for example if a user checks out
a repo that contains a `.js` file but they don't have node installed.
This commit is contained in:
Thomas O'Donnell 2020-10-03 11:58:49 +02:00 committed by GitHub
parent d46c76920e
commit 0883ad78cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -253,7 +253,7 @@ fn internal_exec_cmd(cmd: &str, args: &[&str]) -> Option<CommandOutput> {
})
}
Err(error) => {
log::warn!("Executing command {:?} failed by: {:?}", cmd, error);
log::info!("Executing command {:?} failed by: {:?}", cmd, error);
None
}
}