removed debug logs from release
This commit is contained in:
parent
35661b98da
commit
6c6d373923
@ -11,9 +11,7 @@ namespace Platonus.API;
|
|||||||
public class PlatonusClient
|
public class PlatonusClient
|
||||||
{
|
{
|
||||||
private const string base_url = "https://platonus.iitu.edu.kz/";
|
private const string base_url = "https://platonus.iitu.edu.kz/";
|
||||||
public bool DebugHttpMessages;
|
|
||||||
|
|
||||||
|
|
||||||
private LoginResponse? _loginResponse;
|
private LoginResponse? _loginResponse;
|
||||||
private PlatonusLanguage? _language;
|
private PlatonusLanguage? _language;
|
||||||
private HttpClient _http;
|
private HttpClient _http;
|
||||||
@ -21,16 +19,16 @@ public class PlatonusClient
|
|||||||
|
|
||||||
public PlatonusClient()
|
public PlatonusClient()
|
||||||
{
|
{
|
||||||
#if DEBUG
|
|
||||||
// TODO disable http messages logging
|
|
||||||
DebugHttpMessages = true;
|
|
||||||
#endif
|
|
||||||
_cookies = new CookieContainer();
|
_cookies = new CookieContainer();
|
||||||
var httpClientHandler = new HttpClientHandler
|
var httpClientHandler = new HttpClientHandler
|
||||||
{
|
{
|
||||||
CookieContainer = _cookies
|
CookieContainer = _cookies
|
||||||
};
|
};
|
||||||
_http = new HttpClient(new LoggingHttpHandler(httpClientHandler))
|
_http = new HttpClient(
|
||||||
|
#if DEBUG
|
||||||
|
new LoggingHttpHandler
|
||||||
|
#endif
|
||||||
|
(httpClientHandler))
|
||||||
{
|
{
|
||||||
BaseAddress = new Uri(base_url)
|
BaseAddress = new Uri(base_url)
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user