fix issue with CS:GO connector
This commit is contained in:
parent
47ed505fae
commit
6f28bc5b0b
@ -48,8 +48,8 @@ namespace IW4MAdmin.Application.Extensions
|
||||
loggerConfig = loggerConfig.WriteTo.Console(
|
||||
outputTemplate:
|
||||
"[{Timestamp:HH:mm:ss} {Server} {Level:u3}] {Message:lj}{NewLine}{Exception}")
|
||||
; //.MinimumLevel.Override("Microsoft", LogEventLevel.Information)
|
||||
//.MinimumLevel.Debug();
|
||||
.MinimumLevel.Override("Microsoft", LogEventLevel.Information)
|
||||
.MinimumLevel.Debug();
|
||||
}
|
||||
|
||||
_defaultLogger = loggerConfig.CreateLogger();
|
||||
|
@ -104,7 +104,7 @@ namespace Integrations.Source
|
||||
}
|
||||
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user