Skip to content

Commit

Permalink
debug toml file
Browse files Browse the repository at this point in the history
  • Loading branch information
rawdaGastan committed May 23, 2024
1 parent c7cf082 commit e4e4929
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions docker2fl/src/docker2fl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,12 +230,14 @@ async fn container_boot(
}
}

if container_config.working_dir.is_some() {
cwd = container_config.working_dir.unwrap();
let working_dir = container_config.working_dir.unwrap();
if !working_dir.is_empty() {
cwd = working_dir;
}

let metadata = json!({
"startup": {
"": "",
"entry": {
"name": "core.system",
"args": {
Expand All @@ -250,6 +252,11 @@ async fn container_boot(

let toml_metadata: toml::Value = serde_json::from_str(&metadata.to_string())?;

log::info!(
"Creating '.startup.toml' file from container {:?}",
toml_metadata
);

log::debug!(
"Creating '.startup.toml' file from container {}",
container_name
Expand Down

0 comments on commit e4e4929

Please sign in to comment.