mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 15:20:48 -05:00
fix login issue
strip colors for logging feature implementation for issue #76
This commit is contained in:
@ -60,6 +60,7 @@ namespace IW4MAdmin.Application
|
||||
await OnLogWriting.WaitAsync();
|
||||
|
||||
string stringType = type.ToString();
|
||||
msg = msg.StripColors();
|
||||
|
||||
try
|
||||
{
|
||||
@ -73,13 +74,13 @@ namespace IW4MAdmin.Application
|
||||
{
|
||||
#if DEBUG
|
||||
// lets keep it simple and dispose of everything quickly as logging wont be that much (relatively)
|
||||
Console.WriteLine(LogLine.StripColors());
|
||||
Console.WriteLine(LogLine);
|
||||
await File.AppendAllTextAsync(FileName, $"{LogLine}{Environment.NewLine}");
|
||||
//Debug.WriteLine(msg);
|
||||
#else
|
||||
if (type == LogType.Error || type == LogType.Verbose)
|
||||
{
|
||||
Console.WriteLine(LogLine.StripColors());
|
||||
Console.WriteLine(LogLine);
|
||||
}
|
||||
await File.AppendAllTextAsync(FileName, $"{LogLine}{Environment.NewLine}");
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user