Skip to content

Commit 0e5d13d

Browse files
committed
improvement: Add a little more debug logging
1 parent b59c6f6 commit 0e5d13d

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

distrod/distrod-exec/src/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ where
7676
S1: AsRef<OsStr>,
7777
S2: AsRef<OsStr>,
7878
{
79+
log::debug!("distrod-exec: exec_command");
7980
let cred = get_real_credential().with_context(|| "Failed to get the real credential.")?;
8081
cred.drop_privilege();
8182

@@ -100,6 +101,7 @@ where
100101
S1: AsRef<OsStr>,
101102
S2: AsRef<OsStr>,
102103
{
104+
log::debug!("distrod-exec: exec_command_in_distro");
103105
let inner = || -> Result<()> {
104106
let cred = get_real_credential().with_context(|| "Failed to get the real credential.")?;
105107

distrod/distrod/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ fn is_executed_as_alias() -> bool {
140140
}
141141

142142
fn run_as_command_alias() -> Result<()> {
143+
log::debug!("running as command alias");
143144
if !is_executed_as_alias() {
144145
bail!("Distrod is not run as an alias, but `run_as_command_alias` is called.");
145146
}

0 commit comments

Comments
 (0)