mirror of
https://github.com/edera-dev/sprout.git
synced 2025-12-19 17:10:17 +00:00
feat(sprout): cleanup default logging
This commit is contained in:
@@ -33,8 +33,6 @@ fn load_driver(context: Rc<SproutContext>, driver: &DriverDeclaration) -> Result
|
|||||||
// Push the path of the driver from the root.
|
// Push the path of the driver from the root.
|
||||||
full_path.push_str(&context.stamp(&driver.path));
|
full_path.push_str(&context.stamp(&driver.path));
|
||||||
|
|
||||||
info!("driver path: {}", full_path);
|
|
||||||
|
|
||||||
// Convert the path to a device path.
|
// Convert the path to a device path.
|
||||||
let device_path = utils::text_to_device_path(&full_path)?;
|
let device_path = utils::text_to_device_path(&full_path)?;
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ use std::collections::BTreeMap;
|
|||||||
use std::ops::Deref;
|
use std::ops::Deref;
|
||||||
use std::time::Duration;
|
use std::time::Duration;
|
||||||
use uefi::proto::device_path::LoadedImageDevicePath;
|
use uefi::proto::device_path::LoadedImageDevicePath;
|
||||||
use uefi::proto::device_path::text::{AllowShortcuts, DisplayOnly};
|
|
||||||
|
|
||||||
/// actions: Code that can be configured and executed by Sprout.
|
/// actions: Code that can be configured and executed by Sprout.
|
||||||
pub mod actions;
|
pub mod actions;
|
||||||
@@ -78,10 +77,6 @@ fn run() -> Result<()> {
|
|||||||
>(uefi::boot::image_handle())
|
>(uefi::boot::image_handle())
|
||||||
.context("unable to get loaded image device path")?;
|
.context("unable to get loaded image device path")?;
|
||||||
let loaded_image_path = current_image_device_path_protocol.deref().to_boxed();
|
let loaded_image_path = current_image_device_path_protocol.deref().to_boxed();
|
||||||
info!(
|
|
||||||
"loaded image path: {}",
|
|
||||||
loaded_image_path.to_string(DisplayOnly(false), AllowShortcuts(false))?
|
|
||||||
);
|
|
||||||
RootContext::new(loaded_image_path, options)
|
RootContext::new(loaded_image_path, options)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user