Skip to content

Commit 7ca134a

Browse files
committed
progress
1 parent 927e97b commit 7ca134a

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

crates/pgt_fs/src/fs.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ pub trait FileSystem: Send + Sync + RefUnwindSafe {
147147
/// - If the file cannot be opened, possibly due to incorrect path or permission issues.
148148
/// - If the file is opened but its content cannot be read, potentially due to the file being damaged.
149149
fn read_file_from_path(&self, file_path: &PathBuf) -> Result<String, FileSystemDiagnostic> {
150+
tracing::info!("Reading file from path: {:?}", file_path);
150151
match self.open_with_options(file_path, OpenOptions::default().read(true)) {
151152
Ok(mut file) => {
152153
let mut content = String::new();

crates/pgt_fs/src/fs/memory.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ impl FileSystem for MemoryFileSystem {
134134
));
135135
}
136136

137+
tracing::info!("open_with_options: path {:?}, options: {:?}", path, options);
138+
137139
let mut inner = if options.create || options.create_new {
138140
// Acquire write access to the files map if the file may need to be created
139141
let mut files = self.files.0.write();

crates/pgt_workspace/src/configuration.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ fn load_config(
110110
// we'll load it directly
111111
if let ConfigurationPathHint::FromUser(ref config_file_path) = base_path {
112112
if file_system.path_is_file(config_file_path) {
113+
tracing::info!(
114+
"Loading configuration file from user path: {}",
115+
config_file_path.display()
116+
);
113117
let content = strip_jsonc_comments(&file_system.read_file_from_path(config_file_path)?);
114118

115119
let deserialized = serde_json::from_str::<PartialConfiguration>(&content)

0 commit comments

Comments
 (0)