feat: add PrintCommand support to all task executors

This commit is contained in:
Jose Diaz-Gonzalez committed 2025-11-09 20:21:10 -05:00
1 parent b9025f6137
commit 5e85038d9c
4 files changed
+11 -4

No files matched your search

+1 -1
View File
@@ -219,7 +219,7 @@ func (task SftpCopyTask) Execute(ctx context.Context) (SftpCopyResult, error) {
}, ctx.Err()
}
if task.PrintCommand {
if task.PrintCommand || os.Getenv("DOKKU_TRACE") == "1" {
LogDebug(fmt.Sprintf("ssh %s@%s cp %s %v", task.Username, task.Hostname, task.SourcePath, task.DestinationPath))
}