|
@ -137,7 +137,7 @@ where |
|
|
let resource = resource.as_ref();
|
|
|
let resource = resource.as_ref();
|
|
|
let logger = StoringLogger::new();
|
|
|
let logger = StoringLogger::new();
|
|
|
logger.write(4, format!("Adding {:?} ... ", resource));
|
|
|
logger.write(4, format!("Adding {:?} ... ", resource));
|
|
|
let result = {
|
|
|
|
|
|
|
|
|
let result = async {
|
|
|
logger.trace(format!(" (force_run is {})", force_run));
|
|
|
logger.trace(format!(" (force_run is {})", force_run));
|
|
|
let (location, location_prereqs) = L::locate(resource);
|
|
|
let (location, location_prereqs) = L::locate(resource);
|
|
|
logger.trace(format!("Adding location prereqs for {:?}", resource));
|
|
|
logger.trace(format!("Adding location prereqs for {:?}", resource));
|
|
@ -162,7 +162,8 @@ where |
|
|
)
|
|
|
)
|
|
|
.await?;
|
|
|
.await?;
|
|
|
Ok((location, did_run))
|
|
|
Ok((location, did_run))
|
|
|
};
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
.await;
|
|
|
logger.write(4, "done.");
|
|
|
logger.write(4, "done.");
|
|
|
let max_level = if result.is_err() { 5 } else { 3 };
|
|
|
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 {
|
|
|
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,
|
|
|
force: bool,
|
|
|
) -> Result<bool, Box<dyn Error>> {
|
|
|
) -> Result<bool, Box<dyn Error>> {
|
|
|
let logger = StoringLogger::new();
|
|
|
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;
|
|
|
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 };
|
|
|
let max_level = if result.is_err() { 5 } else { 3 };
|
|
|
parent_logger.put(logger.release().into_iter().filter(|e| e.0 <= max_level));
|
|
|
parent_logger.put(logger.release().into_iter().filter(|e| e.0 <= max_level));
|
|
|
result
|
|
|
result
|
|
|