cleaning up logs
This commit is contained in:
@@ -109,7 +109,7 @@ public class LightlessModule : InteractionModuleBase
|
|||||||
c.DefaultRequestHeaders.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue("Bearer", _serverTokenGenerator.Token);
|
c.DefaultRequestHeaders.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue("Bearer", _serverTokenGenerator.Token);
|
||||||
var testUri = new Uri(_lightlessServicesConfiguration.GetValue<Uri>
|
var testUri = new Uri(_lightlessServicesConfiguration.GetValue<Uri>
|
||||||
(nameof(ServicesConfiguration.MainServerAddress)), "/msgc/sendMessage");
|
(nameof(ServicesConfiguration.MainServerAddress)), "/msgc/sendMessage");
|
||||||
_logger.LogInformation("UnbanByDiscord:URI:{uri}", testUri);
|
|
||||||
await c.PostAsJsonAsync(
|
await c.PostAsJsonAsync(
|
||||||
new Uri(_lightlessServicesConfiguration.GetValue<Uri>(nameof(ServicesConfiguration.MainServerAddress)), "/msgc/sendMessage"),
|
new Uri(_lightlessServicesConfiguration.GetValue<Uri>(nameof(ServicesConfiguration.MainServerAddress)), "/msgc/sendMessage"),
|
||||||
new ClientMessage(messageType, message, uid ?? string.Empty)
|
new ClientMessage(messageType, message, uid ?? string.Empty)
|
||||||
@@ -199,7 +199,7 @@ public class LightlessModule : InteractionModuleBase
|
|||||||
using HttpClient c = new HttpClient();
|
using HttpClient c = new HttpClient();
|
||||||
var testUri = new Uri(_lightlessServicesConfiguration.GetValue<Uri>
|
var testUri = new Uri(_lightlessServicesConfiguration.GetValue<Uri>
|
||||||
(nameof(ServicesConfiguration.MainServerAddress)), "/user/unbanDiscord");
|
(nameof(ServicesConfiguration.MainServerAddress)), "/user/unbanDiscord");
|
||||||
_logger.LogInformation("UnbanByDiscord:URI:{uri}", testUri);
|
|
||||||
c.DefaultRequestHeaders.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue("Bearer", _serverTokenGenerator.Token);
|
c.DefaultRequestHeaders.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue("Bearer", _serverTokenGenerator.Token);
|
||||||
await c.PostAsJsonAsync(new Uri(_lightlessServicesConfiguration.GetValue<Uri>
|
await c.PostAsJsonAsync(new Uri(_lightlessServicesConfiguration.GetValue<Uri>
|
||||||
(nameof(ServicesConfiguration.MainServerAddress)), "/user/unbanUID"), new UnbanRequest(uid, string.Empty))
|
(nameof(ServicesConfiguration.MainServerAddress)), "/user/unbanUID"), new UnbanRequest(uid, string.Empty))
|
||||||
|
|||||||
Reference in New Issue
Block a user