Skip to content

Commit

Permalink
feat(rust): add no_logging flag to the node
Browse files Browse the repository at this point in the history
  • Loading branch information
SanjoDeundiak committed Jan 16, 2025
1 parent d54ca13 commit 357e149
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions implementations/rust/ockam/ockam_command/src/node/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ pub struct CreateCommand {
env = "OCKAM_SQLITE_IN_MEMORY"
)]
pub in_memory: bool,

// FIXME: Implement
pub no_logging: bool,
}

impl Default for CreateCommand {
Expand Down Expand Up @@ -176,6 +179,7 @@ impl Default for CreateCommand {
child_process: false,
},
in_memory: false,
no_logging: false,
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions implementations/rust/ockam/ockam_command/src/node/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ pub fn spawn_node(opts: &CommandGlobalOpts, cmd: CreateCommand) -> miette::Resul
&cmd.name
);

// FIXME
let CreateCommand {
name,
config_args,
Expand All @@ -75,6 +76,7 @@ pub fn spawn_node(opts: &CommandGlobalOpts, cmd: CreateCommand) -> miette::Resul
trust_opts,
opentelemetry_context,
in_memory,
..
} = cmd;

let mut args = vec![
Expand Down

0 comments on commit 357e149

Please sign in to comment.