From 6c6d373923967e97e0a54bbf25beb1522e986494 Mon Sep 17 00:00:00 2001 From: Timerix22 Date: Sat, 2 Sep 2023 21:44:06 +0600 Subject: [PATCH] removed debug logs from release --- Platonus.API/PlatonusClient.cs | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/Platonus.API/PlatonusClient.cs b/Platonus.API/PlatonusClient.cs index 3012e3c..fce5dba 100644 --- a/Platonus.API/PlatonusClient.cs +++ b/Platonus.API/PlatonusClient.cs @@ -11,9 +11,7 @@ namespace Platonus.API; public class PlatonusClient { private const string base_url = "https://platonus.iitu.edu.kz/"; - public bool DebugHttpMessages; - - + private LoginResponse? _loginResponse; private PlatonusLanguage? _language; private HttpClient _http; @@ -21,16 +19,16 @@ public class PlatonusClient public PlatonusClient() { -#if DEBUG - // TODO disable http messages logging - DebugHttpMessages = true; -#endif _cookies = new CookieContainer(); var httpClientHandler = new HttpClientHandler { CookieContainer = _cookies }; - _http = new HttpClient(new LoggingHttpHandler(httpClientHandler)) + _http = new HttpClient( +#if DEBUG + new LoggingHttpHandler +#endif + (httpClientHandler)) { BaseAddress = new Uri(base_url) };