From cbf480dd7ac076d2e97d0042f6c466e0800cfb08 Mon Sep 17 00:00:00 2001 From: fheinrich <fheinrich@techfak.uni-bielefeld.de> Date: Wed, 3 Apr 2024 10:35:33 +0200 Subject: [PATCH] Log of study server now as jsonl --- cooperative_cuisine/study_server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cooperative_cuisine/study_server.py b/cooperative_cuisine/study_server.py index 657c4c00..fbce4f2e 100644 --- a/cooperative_cuisine/study_server.py +++ b/cooperative_cuisine/study_server.py @@ -322,7 +322,7 @@ class Study: env_name=self.current_running_env["env_id"], ) os.makedirs(log_path, exist_ok=True) - with open(Path(log_path) / "study_log", "a") as log_file: + with open(Path(log_path) / "study_log.jsonl", "a") as log_file: log_file.write( json.dumps( { @@ -332,6 +332,7 @@ class Study: "player_info": player_info, } ) + + "\n" ) return player_info, level_info else: -- GitLab