File tree 7 files changed +14
-14
lines changed
client/src/main/java/com/alibaba/nacos/client
common/src/main/java/com/alibaba/nacos/common
config/src/main/java/com/alibaba/nacos/config/server/service/notify
naming/src/main/java/com/alibaba/nacos/naming/misc
7 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -71,14 +71,14 @@ public static ConfigHttpClientManager getInstance() {
71
71
72
72
@ Override
73
73
public void shutdown () throws NacosException {
74
- NAMING_LOGGER .warn ("[ConfigHttpClientManager] Start destroying NacosRestTemplate" );
74
+ NAMING_LOGGER .info ("[ConfigHttpClientManager] Start destroying NacosRestTemplate" );
75
75
try {
76
76
HttpClientBeanHolder .shutdownNacosSyncRest (HTTP_CLIENT_FACTORY .getClass ().getName ());
77
77
} catch (Exception ex ) {
78
78
NAMING_LOGGER .error ("[ConfigHttpClientManager] An exception occurred when the HTTP client was closed : {}" ,
79
79
ExceptionUtil .getStackTrace (ex ));
80
80
}
81
- NAMING_LOGGER .warn ("[ConfigHttpClientManager] Destruction of the end " );
81
+ NAMING_LOGGER .info ("[ConfigHttpClientManager] Completed destruction of NacosRestTemplate " );
82
82
}
83
83
84
84
/**
Original file line number Diff line number Diff line change @@ -68,14 +68,14 @@ public NacosRestTemplate getNacosRestTemplate() {
68
68
69
69
@ Override
70
70
public void shutdown () throws NacosException {
71
- NAMING_LOGGER .warn ("[NamingHttpClientManager] Start destroying NacosRestTemplate" );
71
+ NAMING_LOGGER .info ("[NamingHttpClientManager] Start destroying NacosRestTemplate" );
72
72
try {
73
73
HttpClientBeanHolder .shutdownNacosSyncRest (HTTP_CLIENT_FACTORY .getClass ().getName ());
74
74
} catch (Exception ex ) {
75
75
NAMING_LOGGER .error ("[NamingHttpClientManager] An exception occurred when the HTTP client was closed : {}" ,
76
76
ExceptionUtil .getStackTrace (ex ));
77
77
}
78
- NAMING_LOGGER .warn ("[NamingHttpClientManager] Destruction of the end " );
78
+ NAMING_LOGGER .info ("[NamingHttpClientManager] Completed destruction of NacosRestTemplate " );
79
79
}
80
80
81
81
private static class NamingHttpClientFactory extends AbstractHttpClientFactory {
Original file line number Diff line number Diff line change @@ -51,9 +51,9 @@ public final class ThreadPoolManager {
51
51
static {
52
52
INSTANCE .init ();
53
53
ThreadUtils .addShutdownHook (new Thread (() -> {
54
- LOGGER .warn ("[ThreadPoolManager] Start destroying ThreadPool" );
54
+ LOGGER .info ("[ThreadPoolManager] Start destroying ThreadPool" );
55
55
shutdown ();
56
- LOGGER .warn ("[ThreadPoolManager] Destruction of the end " );
56
+ LOGGER .info ("[ThreadPoolManager] Completed destruction of ThreadPool " );
57
57
}));
58
58
}
59
59
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ private static void shutdown() {
99
99
if (!ALREADY_SHUTDOWN .compareAndSet (false , true )) {
100
100
return ;
101
101
}
102
- LOGGER .warn ("[HttpClientBeanHolder] Start destroying common HttpClient" );
102
+ LOGGER .info ("[HttpClientBeanHolder] Start destroying common HttpClient" );
103
103
104
104
try {
105
105
shutdown (DefaultHttpClientFactory .class .getName ());
@@ -108,7 +108,7 @@ private static void shutdown() {
108
108
ExceptionUtil .getStackTrace (ex ));
109
109
}
110
110
111
- LOGGER .warn ("[HttpClientBeanHolder] Destruction of the end " );
111
+ LOGGER .info ("[HttpClientBeanHolder] Completed destruction of HttpClient " );
112
112
}
113
113
114
114
/**
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ public static void shutdown() {
131
131
if (!CLOSED .compareAndSet (false , true )) {
132
132
return ;
133
133
}
134
- LOGGER .warn ("[NotifyCenter] Start destroying Publisher" );
134
+ LOGGER .info ("[NotifyCenter] Start destroying Publisher" );
135
135
136
136
for (Map .Entry <String , EventPublisher > entry : INSTANCE .publisherMap .entrySet ()) {
137
137
try {
@@ -148,7 +148,7 @@ public static void shutdown() {
148
148
LOGGER .error ("[SharePublisher] shutdown has error : " , e );
149
149
}
150
150
151
- LOGGER .warn ("[NotifyCenter] Destruction of the end " );
151
+ LOGGER .info ("[NotifyCenter] Completed destruction of Publisher " );
152
152
}
153
153
154
154
/**
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ public static NacosAsyncRestTemplate getNacosAsyncRestTemplate() {
64
64
}
65
65
66
66
private static void shutdown () {
67
- LOGGER .warn ("[ConfigServer-HttpClientManager] Start destroying NacosRestTemplate" );
67
+ LOGGER .info ("[ConfigServer-HttpClientManager] Start destroying NacosRestTemplate" );
68
68
try {
69
69
final String httpClientFactoryBeanName = ConfigHttpClientFactory .class .getName ();
70
70
HttpClientBeanHolder .shutdownNacosSyncRest (httpClientFactoryBeanName );
@@ -73,7 +73,7 @@ private static void shutdown() {
73
73
LOGGER .error ("[ConfigServer-HttpClientManager] An exception occurred when the HTTP client was closed : {}" ,
74
74
ExceptionUtil .getStackTrace (ex ));
75
75
}
76
- LOGGER .warn ("[ConfigServer-HttpClientManager] Destruction of the end " );
76
+ LOGGER .info ("[ConfigServer-HttpClientManager] Completed destruction of NacosRestTemplate " );
77
77
}
78
78
79
79
/**
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ public static NacosAsyncRestTemplate getProcessorNacosAsyncRestTemplate() {
104
104
}
105
105
106
106
private static void shutdown () {
107
- SRV_LOG .warn ("[NamingServerHttpClientManager] Start destroying HTTP-Client" );
107
+ SRV_LOG .info ("[NamingServerHttpClientManager] Start destroying HTTP-Client" );
108
108
try {
109
109
HttpClientBeanHolder .shutdownNacosSyncRest (SYNC_HTTP_CLIENT_FACTORY .getClass ().getName ());
110
110
HttpClientBeanHolder .shutdownNacosSyncRest (APACHE_SYNC_HTTP_CLIENT_FACTORY .getClass ().getName ());
@@ -114,7 +114,7 @@ private static void shutdown() {
114
114
SRV_LOG .error ("[NamingServerHttpClientManager] An exception occurred when the HTTP client was closed : {}" ,
115
115
ExceptionUtil .getStackTrace (ex ));
116
116
}
117
- SRV_LOG .warn ("[NamingServerHttpClientManager] Destruction of the end " );
117
+ SRV_LOG .info ("[NamingServerHttpClientManager] Completed destruction of HTTP-Client " );
118
118
}
119
119
120
120
private static class AsyncHttpClientFactory extends AbstractHttpClientFactory {
You can’t perform that action at this time.
0 commit comments