summaryrefslogtreecommitdiff
path: root/experiment/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'experiment/views.py')
-rw-r--r--experiment/views.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/experiment/views.py b/experiment/views.py
index cf507a7..e4ab2ab 100644
--- a/experiment/views.py
+++ b/experiment/views.py
@@ -58,8 +58,12 @@ def initiation(req):
key = str(user_board.mid)
settings.boards[key]["experiment_id"] = e.id
+ global_logfile = settings.SBHS_GLOBAL_LOG_DIR + "/" + key + ".log"
+ with open(global_logfile, "a") as global_loghandler:
+ data = "\n\n===================New experiment====================\nUsername :", user.username, "\nExperiment Id :", e.id, "\n"
+ global_loghandler.write(data)
+
reset(req)
-
STATUS = 1
MESSAGE = filename