Add default logger

parent 440cb3a6
......@@ -14,6 +14,10 @@ app = Flask(__name__)
auth = Auth(app, login_url_name='login')
auth.user_timeout = 0
# Setup default flask (werkzeug) parser
import logging
logger = logging.getLogger('werkzeug')
def login_redirect(*args, **kwargs):
return redirect(url_for('login'))
......@@ -444,7 +448,7 @@ def saveParameterXml():
except Exception, e:
result = str(e)
software_type = None
if(request.form['software_type']):
if request.form['software_type']:
software_type = request.form['software_type']
if type(result) == type(''):
return jsonify(code=0, result=result)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment