From 7f61d52f50e22ee77ab2bd0d523344f475b7b623 Mon Sep 17 00:00:00 2001 From: Clement Verna Date: Thu, 1 Aug 2019 19:51:16 +0200 Subject: [PATCH] totpcgi: get the traceback in the tmp folder Signed-off-by: Clement Verna --- roles/totpcgi/files/index.cgi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/totpcgi/files/index.cgi b/roles/totpcgi/files/index.cgi index de3d066eac..8802fbdb99 100755 --- a/roles/totpcgi/files/index.cgi +++ b/roles/totpcgi/files/index.cgi @@ -28,6 +28,9 @@ import urllib2 import totpcgi import totpcgi.backends +import cgitb +cgitb.enable(display=0, logdir="/tmp") + if len(sys.argv) > 1: # blindly assume it's the config file config_file = sys.argv[1]