Skip to content
Snippets Groups Projects
Commit 911fad58 authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

Remove generation of bytecode + fix log generation for consecutive doc2tosca runs

parent 0a2c03ff
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,8 @@ import shutil
import tempfile
import logging
import traceback
import sys
sys.dont_write_bytecode = True
from zipfile import ZipFile
from flask import Flask, flash, request, redirect, send_file, render_template, g
......@@ -199,7 +201,7 @@ def mk_doc2tosca():
tmp_dir = tempfile.mkdtemp()
logfilename = os.path.join(tmp_dir, 'toscatools.log')
logging.basicConfig(filename=logfilename, level=logging.INFO)
logging.basicConfig(filename=logfilename, force=True, level=logging.INFO)
logging.info("Starting")
logging.debug("TMP DIR: " + tmp_dir)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment