Skip to content

Commit 9c9d951

Browse files
committed
Include logging for the command being run.
1 parent d4312d2 commit 9c9d951

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pmrctrl/src/bin/pmrctrl.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ async fn main() -> anyhow::Result<()> {
248248
stderrlog::new()
249249
.module(module_path!())
250250
.module("pmrdb")
251+
.module("pmrtqs")
251252
.verbosity((args.verbose as usize) + 1)
252253
.timestamp(stderrlog::Timestamp::Second)
253254
.init()

pmrtqs/src/executor/impls.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ impl<'a> TMPlatformExecutorInstance<'a> {
3232
}
3333

3434
pub async fn execute(&mut self) -> Result<(i32, bool), RunnerError> {
35-
let mut command: Command = (&self.task).try_into()?;
35+
let mut command = Command::try_from(&self.task)?;
36+
log::trace!("task id {} will run: {command:?}", self.task.id());
3637
let basedir = command.get_current_dir()
3738
.ok_or(ValueError::UninitializedAttribute("task missing basedir"))?;
3839

0 commit comments

Comments
 (0)