Skip to content

Commit

Permalink
Write telemetry to persistentDataPath
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellovell committed Sep 26, 2024
1 parent f8725f5 commit 5d7590f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Scripts/Monitor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ private void InitializeFile()
{
string timestamp = DateTime.Now.ToString("yyyyMMdd_HHmmss");
string fileName = $"sim_telemetry_{timestamp}.csv";
string directory = "Telemetry/Logs/";
string directory = Application.persistentDataPath + "/Telemetry/Logs/";
Directory.CreateDirectory(directory);
string path = Path.Combine(directory, fileName);
writer = new StreamWriter(path, false);
Expand Down

0 comments on commit 5d7590f

Please sign in to comment.