From 075b73327014491e60870657e75cd476104fc9b0 Mon Sep 17 00:00:00 2001 From: Michael Zhilin Date: Fri, 15 Apr 2022 17:50:29 +0300 Subject: [PATCH] [debug] show REST API calls if packer is executed with "-debug" option (#78) This patch allows to trace all REST API calls if packer is executed with "-debug" option. Before this patch, there is no way to enable such tracing. It simplifies analysis of packer-proxmox interaction and identify root cause of breaks. --- builder/proxmox/common/client.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/builder/proxmox/common/client.go b/builder/proxmox/common/client.go index 6e9d5551..920edbee 100644 --- a/builder/proxmox/common/client.go +++ b/builder/proxmox/common/client.go @@ -17,6 +17,8 @@ func newProxmoxClient(config Config) (*proxmox.Client, error) { return nil, err } + *proxmox.Debug = config.PackerDebug + if config.Token != "" { // configure token auth log.Print("using token auth")