Commit 8e4865eb authored by Jérome Perrin's avatar Jérome Perrin

disable logging

parent 5b0eb001
......@@ -89,7 +89,8 @@ def positionGraph():
@app.route("/runSimulation", methods=["POST", "OPTIONS"])
def runSimulation():
parameter_dict = request.json['json']
app.logger.debug("running with:\n%s" % (json.dumps(parameter_dict,
if 0:
app.logger.debug("running with:\n%s" % (json.dumps(parameter_dict,
sort_keys=True, indent=2)))
try:
......@@ -110,7 +111,8 @@ def runSimulation():
return jsonify(dict(error='Timeout after %s seconds' % timeout))
result = queue.get()
app.logger.debug("result\n%s" % (json.dumps(result,
if 0:
app.logger.debug("result\n%s" % (json.dumps(result,
sort_keys=True, indent=2)))
return jsonify(result)
......
......@@ -1343,7 +1343,7 @@ def main(argv=[], input_data=None):
#run the experiment (replications)
for i in xrange(G.numberOfReplications):
logger.info("start run number "+str(i+1))
#logger.info("start run number "+str(i+1))
G.seed+=1
G.Rnd=Random(G.seed)
initialize() #initialize the simulation
......@@ -1399,7 +1399,7 @@ def main(argv=[], input_data=None):
outputJSONString=json.dumps(G.outputJSON, indent=True)
G.outputJSONFile.write(outputJSONString)
logger.info("execution time="+str(time.time()-start))
#logger.info("execution time="+str(time.time()-start))
if input_data:
return outputJSONString
......
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