From 20a923a9c049d513e56ba2419244954e765e564f Mon Sep 17 00:00:00 2001 From: Roey Darwish Dror Date: Thu, 27 Feb 2020 15:05:34 +0200 Subject: [PATCH] Log every command execution --- src/executor.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/executor.rs b/src/executor.rs index ef0f1cc7..e890475b 100644 --- a/src/executor.rs +++ b/src/executor.rs @@ -2,7 +2,7 @@ use crate::error::TopgradeError; use crate::utils::Check; use anyhow::Result; -use log::trace; +use log::{debug, trace}; use std::ffi::{OsStr, OsString}; use std::path::Path; use std::process::{Child, Command, ExitStatus}; @@ -121,7 +121,10 @@ impl Executor { /// See `std::process::Command::spawn` pub fn spawn(&mut self) -> Result { let result = match self { - Executor::Wet(c) => c.spawn().map(ExecutorChild::Wet)?, + Executor::Wet(c) => { + debug!("Running {:?}", c); + c.spawn().map(ExecutorChild::Wet)? + } Executor::Dry(c) => { c.dry_run(); ExecutorChild::Dry