From 6cae8ee2fccddc1427677643493fcc53de545741 Mon Sep 17 00:00:00 2001 From: Cyberboss Date: Mon, 13 Nov 2017 11:13:50 -0500 Subject: [PATCH] Fixes console displaying wrong event IDs --- TGS.Server.Console/Console.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/TGS.Server.Console/Console.cs b/TGS.Server.Console/Console.cs index 3a1173be47..9efb81bbb5 100644 --- a/TGS.Server.Console/Console.cs +++ b/TGS.Server.Console/Console.cs @@ -49,25 +49,25 @@ namespace TGS.Server.Console /// public void WriteAccess(string username, bool authSuccess, byte loggingID) { - System.Console.WriteLine(String.Format("[{0}]: {1}: Authentication {3} from {2}", DateTime.UtcNow.ToString(), EventID.Authentication + loggingID, username, authSuccess ? "success" : "fail")); + System.Console.WriteLine(String.Format("[{0}]: {1}-{4}: Authentication {3} from {2}", DateTime.UtcNow.ToString(), EventID.Authentication, username, authSuccess ? "success" : "fail", loggingID)); } /// public void WriteError(string message, EventID id, byte loggingID) { - System.Console.WriteLine(String.Format("[{0}]: {1}: ERROR: {2}", DateTime.UtcNow.ToString(), id + loggingID, message)); + System.Console.WriteLine(String.Format("[{0}]: {1}-{3}: ERROR: {2}", DateTime.UtcNow.ToString(), id, message, loggingID)); } /// public void WriteInfo(string message, EventID id, byte loggingID) { - System.Console.WriteLine(String.Format("[{0}]: {1}: Warning: {2}", DateTime.UtcNow.ToString(), id + loggingID, message)); + System.Console.WriteLine(String.Format("[{0}]: {1}-{3}: Warning: {2}", DateTime.UtcNow.ToString(), id, message, loggingID)); } /// public void WriteWarning(string message, EventID id, byte loggingID) { - System.Console.WriteLine(String.Format("[{0}]: {1}: {2}", DateTime.UtcNow.ToString(), id + loggingID, message)); + System.Console.WriteLine(String.Format("[{0}]: {1}-{3}: {2}", DateTime.UtcNow.ToString(), id, message, loggingID)); } } }