Skip to content

Commit

Permalink
chore: Improve debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
michidk committed Sep 14, 2024
1 parent f1ff99b commit be5865c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/workspace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,16 @@ impl DevContainer {
debug!("Could not read workspace folder from config -> using default folder");
format!("/workspaces/{workspace_name}")
};
trace!("Workspace folder: {folder}");

let name = if let Some(name) = dev_container["name"].as_str() {
trace!("Read workspace name from config: {}", name);
debug!("Read workspace name from config: {}", name);
Some(name.to_owned())
} else {
trace!("Could not read workspace name from config");
debug!("Could not read workspace name from config");
None
};
trace!("Workspace name: {name:?}");

Ok(DevContainer {
config_path: path.to_owned(),
Expand Down

0 comments on commit be5865c

Please sign in to comment.