add tracing

This commit is contained in:
Qyriad 2026-02-02 17:43:44 +01:00
parent 9ae0630db4
commit a06790a2af
7 changed files with 413 additions and 17 deletions

View file

@ -102,6 +102,11 @@ pub struct SourceFile {
impl SourceFile {
/// Panics if `path` is a directory path instead of a file path.
pub fn open_from(path: Arc<Path>, options: OpenOptions) -> Result<Self, IoError> {
trace!(
"SourceFile::open_from(path={:?}, options={:?})",
path,
options.options(),
);
assert!(path.file_name().is_some());
let file = Arc::new(Mutex::new(options.open(&*path)?));