Переключил уровень логирования debug
This commit is contained in:
parent
b25f085727
commit
2f6b46e5b2
@ -47,7 +47,7 @@ public class TelegramDefaultConnect implements TelegramConnect {
|
|||||||
|
|
||||||
if (checkNotNull(proxyConfig.getHost())) {
|
if (checkNotNull(proxyConfig.getHost())) {
|
||||||
System.setProperty("https.protocols", "TLSv1,TLSv1.1,TLSv1.2");
|
System.setProperty("https.protocols", "TLSv1,TLSv1.1,TLSv1.2");
|
||||||
System.setProperty("javax.net.debug", "all");
|
// System.setProperty("javax.net.debug", "all");
|
||||||
botOptions.setProxyHost(proxyConfig.getHost());
|
botOptions.setProxyHost(proxyConfig.getHost());
|
||||||
botOptions.setProxyPort(proxyConfig.getPort());
|
botOptions.setProxyPort(proxyConfig.getPort());
|
||||||
botOptions.setProxyType(convertProxyType(proxyConfig.getType()));
|
botOptions.setProxyType(convertProxyType(proxyConfig.getType()));
|
||||||
|
@ -74,7 +74,7 @@ public class TelegramConnectBot implements TelegramConnect {
|
|||||||
try {
|
try {
|
||||||
if (checkNotNull(proxyConfig) && proxyConfig.isEnable() && checkNotNull(proxyConfig.getHost()) && !"".equals(proxyConfig.getHost())) {
|
if (checkNotNull(proxyConfig) && proxyConfig.isEnable() && checkNotNull(proxyConfig.getHost()) && !"".equals(proxyConfig.getHost())) {
|
||||||
System.setProperty("https.protocols", "TLSv1,TLSv1.1,TLSv1.2");
|
System.setProperty("https.protocols", "TLSv1,TLSv1.1,TLSv1.2");
|
||||||
System.setProperty("javax.net.debug", "all");
|
// System.setProperty("javax.net.debug", "all");
|
||||||
log.info(System.getProperty("https.protocols"));
|
log.info(System.getProperty("https.protocols"));
|
||||||
DefaultBotOptions botOptions = new DefaultBotOptions();
|
DefaultBotOptions botOptions = new DefaultBotOptions();
|
||||||
botOptions.setProxyHost(proxyConfig.getHost());
|
botOptions.setProxyHost(proxyConfig.getHost());
|
||||||
|
@ -58,7 +58,7 @@ public class TelegramConnectBot implements TelegramConnect {
|
|||||||
try {
|
try {
|
||||||
if (checkNotNull(proxyConfig) && proxyConfig.isEnable() && checkNotNull(proxyConfig.getHost()) && !"".equals(proxyConfig.getHost())) {
|
if (checkNotNull(proxyConfig) && proxyConfig.isEnable() && checkNotNull(proxyConfig.getHost()) && !"".equals(proxyConfig.getHost())) {
|
||||||
System.setProperty("https.protocols", "TLSv1,TLSv1.1,TLSv1.2");
|
System.setProperty("https.protocols", "TLSv1,TLSv1.1,TLSv1.2");
|
||||||
System.setProperty("javax.net.debug", "all");
|
// System.setProperty("javax.net.debug", "all");
|
||||||
log.info(System.getProperty("https.protocols"));
|
log.info(System.getProperty("https.protocols"));
|
||||||
DefaultBotOptions botOptions = new DefaultBotOptions();
|
DefaultBotOptions botOptions = new DefaultBotOptions();
|
||||||
botOptions.setProxyHost(proxyConfig.getHost());
|
botOptions.setProxyHost(proxyConfig.getHost());
|
||||||
|
Loading…
Reference in New Issue
Block a user