From 22e6295c8425e77d6b65f3f5077f53e80854453d Mon Sep 17 00:00:00 2001 From: Jean-Philippe Evrard Date: Tue, 8 Aug 2017 15:14:43 +0000 Subject: [PATCH] Implement logging for leapfrog Default logging could be used in leapfrog, into the leapfrog folder, to help debugging. Change-Id: Ief9c4d2b9e46e515850720e07a62d59d561a3aa1 --- leap-upgrades/lib/vars.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/leap-upgrades/lib/vars.sh b/leap-upgrades/lib/vars.sh index d34bc90f..0fc054eb 100644 --- a/leap-upgrades/lib/vars.sh +++ b/leap-upgrades/lib/vars.sh @@ -39,3 +39,7 @@ export VENV_URL="${VENV_URL:-https://rpc-repo.rackspace.com/venvs/leap-bundles}" export VALIDATE_UPGRADE_INPUT="${VALIDATE_UPGRADE_INPUT:-TRUE}" export UPGRADES_TO_TODOLIST="${UPGRADES_TO_TODOLIST:-''}" export CODE_UPGRADE_FROM="" + +## Ansible debugging +export LEAP_TIMESTAMP=$(date +%s) +export ANSIBLE_LOG_PATH="/opt/leap42/ansible-${LEAP_TIMESTAMP}.log"