[fix:] console logging printed an array 👀

This commit is contained in:
2026-05-16 14:41:06 +02:00
parent 7c81920e84
commit 6f03a26c29
+2 -2
View File
@@ -19,10 +19,10 @@ public static class Logger
if(!File.Exists(log_path)) if(!File.Exists(log_path))
File.Create(log_path).Close(); File.Create(log_path).Close();
string[] line = [$"[{DateTime.Now:dd.MM.yyyy - T}]: ({logType.ToString()}) {text})"]; string line = $"[{DateTime.Now:dd.MM.yyyy - T}]: ({logType.ToString()}) {text})";
Console.WriteLine(line); Console.WriteLine(line);
File.AppendAllLines(log_path, line); File.AppendAllLines(log_path, [line]);
} }
catch (Exception ex) catch (Exception ex)
{ {