|
|
@ -137,7 +137,7 @@ where |
|
|
|
let resource = resource.as_ref();
|
|
|
|
let logger = StoringLogger::new();
|
|
|
|
logger.write(4, format!("Adding {:?} ... ", resource));
|
|
|
|
let result = {
|
|
|
|
let result = async {
|
|
|
|
logger.trace(format!(" (force_run is {})", force_run));
|
|
|
|
let (location, location_prereqs) = L::locate(resource);
|
|
|
|
logger.trace(format!("Adding location prereqs for {:?}", resource));
|
|
|
@ -162,7 +162,8 @@ where |
|
|
|
)
|
|
|
|
.await?;
|
|
|
|
Ok((location, did_run))
|
|
|
|
};
|
|
|
|
}
|
|
|
|
.await;
|
|
|
|
logger.write(4, "done.");
|
|
|
|
let max_level = if result.is_err() { 5 } else { 3 };
|
|
|
|
if parent_logger.put(logger.release().into_iter().filter(|e| e.0 <= max_level)) == 0 {
|
|
|
@ -181,9 +182,9 @@ impl<SR: SymbolRunner, L, B> SymbolRunner for RegularSetupCore<SR, L, B> { |
|
|
|
force: bool,
|
|
|
|
) -> Result<bool, Box<dyn Error>> {
|
|
|
|
let logger = StoringLogger::new();
|
|
|
|
logger.debug(format!("Directly running {:?} ...", symbol));
|
|
|
|
logger.write(4, format!("Directly running {:?} ...", symbol));
|
|
|
|
let result = self.symbol_runner.run_symbol(symbol, &logger, force).await;
|
|
|
|
logger.debug("done.");
|
|
|
|
logger.write(4, "done.");
|
|
|
|
let max_level = if result.is_err() { 5 } else { 3 };
|
|
|
|
parent_logger.put(logger.release().into_iter().filter(|e| e.0 <= max_level));
|
|
|
|
result
|
|
|
|