add tracing
This commit is contained in:
parent
9ae0630db4
commit
a06790a2af
7 changed files with 413 additions and 17 deletions
|
|
@ -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)?));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue