mirror of
https://seed.radicle.dev/rad:z3qg5TKmN83afz2fj9z3fQjU8vaYE.git
synced 2026-11-21 10:30:49 +08:00
fix: don't init pretty_env_logger twice
Signed-off-by: Lars Wirzenius <liw@liw.fi>
This commit is contained in:
+1
-4
@@ -62,9 +62,6 @@ fn fallible_main() -> Result<(), NativeError> {
|
||||
}
|
||||
|
||||
fn fallible_main_inner(config: &Config, logfile: &mut LogFile) -> Result<(), NativeError> {
|
||||
pretty_env_logger::init_custom_env("RADICLE_NATIVE_CI_LOG");
|
||||
info!("radicle-native-ci starts");
|
||||
|
||||
let (run_id, run_dir) = mkdir_run(config)?;
|
||||
let run_id = RunId::from(format!("{}", run_id).as_str());
|
||||
logfile.write(format!("run directory {}\n", run_dir.display()))?;
|
||||
@@ -221,7 +218,7 @@ fn runcmd(log: &mut LogFile, argv: &[&str], cwd: &Path) -> Result<(), NativeErro
|
||||
|
||||
log.write_str("## Run command\n\n")?;
|
||||
log.write(format!("~~~\n{:?}\n~~~\n\n", argv))?;
|
||||
log.write(format!("in directory: {}n", cwd.display()))?;
|
||||
log.write(format!("in directory: {}\n\n", cwd.display()))?;
|
||||
|
||||
assert!(!argv.is_empty());
|
||||
let argv0 = argv[0];
|
||||
|
||||
Reference in New Issue
Block a user