MUD now collects diagnostics.
This commit is contained in:
parent
ea430ac9df
commit
23671dedd1
1 changed files with 11 additions and 0 deletions
|
@ -127,6 +127,17 @@ namespace ShiftOS.Server
|
|||
|
||||
}
|
||||
|
||||
[MudRequest("diag_log", typeof(string))]
|
||||
public static void Diagnostic(string guid, string line)
|
||||
{
|
||||
List<string> lines = new List<string>();
|
||||
if (File.Exists("diagnostics.log"))
|
||||
lines = new List<string>(File.ReadAllLines("diagnostics.log"));
|
||||
|
||||
lines.Add(line);
|
||||
File.WriteAllLines("diagnostics.log", lines.ToArray());
|
||||
}
|
||||
|
||||
[MudRequest("getusers", typeof(string))]
|
||||
public static void GetAllUsers(string guid, string contents)
|
||||
{
|
||||
|
|
Reference in a new issue