Skip to content

Commit 74fb679

Browse files
committed
address Steve's feedback
1 parent 575f0f8 commit 74fb679

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

sshdconfig/locales/en-us.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ defaultShellCmdOptionMustBeString = "cmdOption must be a string"
2222
defaultShellEscapeArgsMustBe0Or1 = "'%{input}' must be a 0 or 1"
2323
defaultShellEscapeArgsMustBeDWord = "escapeArguments must be a DWord"
2424
defaultShellMustBeString = "shell must be a string"
25+
traceInput = "Get input:"
2526
windowsOnly = "Microsoft.OpenSSH.SSHD/Windows is only applicable to Windows"
2627

2728
[main]

sshdconfig/src/get.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use {
1010

1111
use rust_i18n::t;
1212
use serde_json::{Map, Value};
13-
use tracing::debug;
13+
use tracing::{debug, trace};
1414

1515
use crate::args::Setting;
1616
use crate::error::SshdConfigError;
@@ -29,7 +29,8 @@ use crate::util::{
2929
///
3030
/// This function will return an error if the desired settings cannot be retrieved.
3131
pub fn invoke_get(input: Option<&String>, setting: &Setting) -> Result<Map<String, Value>, SshdConfigError> {
32-
debug!("{}: {:?} {:?}", t!("get.debugSetting").to_string(), setting, input);
32+
debug!("{}: {:?}", t!("get.debugSetting").to_string(), setting);
33+
trace!("{}: {:?}", t!("get.traceInput").to_string(), input);
3334
match *setting {
3435
Setting::SshdConfig => {
3536
let cmd_info = build_command_info(input, true)?;

0 commit comments

Comments
 (0)