Commit 22e7c2ea authored by Mikaël Salson's avatar Mikaël Salson

default.py: Clean some debug log

The parameter can be a dictionary when the dictionary has a success and message key.
parent d1300eb5
...@@ -158,7 +158,7 @@ def run_contamination(): ...@@ -158,7 +158,7 @@ def run_contamination():
res = {"success" : "true", res = {"success" : "true",
"processId" : task.id} "processId" : task.id}
log.error(res) log.debug(str(res))
return gluon.contrib.simplejson.dumps(res, separators=(',',':')) return gluon.contrib.simplejson.dumps(res, separators=(',',':'))
def run_extra(): def run_extra():
...@@ -167,7 +167,7 @@ def run_extra(): ...@@ -167,7 +167,7 @@ def run_extra():
min_threshold=5)) min_threshold=5))
res = {"success" : "true", res = {"success" : "true",
"processId" : task.id} "processId" : task.id}
log.debug(res) log.debug(str(res))
return gluon.contrib.simplejson.dumps(res, separators=(',',':')) return gluon.contrib.simplejson.dumps(res, separators=(',',':'))
def checkProcess(): def checkProcess():
......
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