fix issue with CS:GO connector

This commit is contained in:
RaidMax 2023-06-11 17:30:06 -05:00
parent 47ed505fae
commit 6f28bc5b0b
2 changed files with 3 additions and 3 deletions

View File

@ -48,8 +48,8 @@ namespace IW4MAdmin.Application.Extensions
loggerConfig = loggerConfig.WriteTo.Console( loggerConfig = loggerConfig.WriteTo.Console(
outputTemplate: outputTemplate:
"[{Timestamp:HH:mm:ss} {Server} {Level:u3}] {Message:lj}{NewLine}{Exception}") "[{Timestamp:HH:mm:ss} {Server} {Level:u3}] {Message:lj}{NewLine}{Exception}")
; //.MinimumLevel.Override("Microsoft", LogEventLevel.Information) .MinimumLevel.Override("Microsoft", LogEventLevel.Information)
//.MinimumLevel.Debug(); .MinimumLevel.Debug();
} }
_defaultLogger = loggerConfig.CreateLogger(); _defaultLogger = loggerConfig.CreateLogger();

View File

@ -104,7 +104,7 @@ namespace Integrations.Source
} }
var split = response.TrimEnd('\n').Split('\n'); var split = response.TrimEnd('\n').Split('\n');
return split.Take(split.Length - 1).ToArray(); return split.Take(Math.Max(1, split.Length - 1)).ToArray();
} }
catch (TaskCanceledException) catch (TaskCanceledException)