Skip to content

Commit

Permalink
add log.
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewAden committed Dec 2, 2024
1 parent 11bdb9e commit 5600cd5
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
import com.alibaba.nacos.core.remote.RequestHandler;
import com.alibaba.nacos.plugin.auth.constant.ActionTypes;
import com.alibaba.nacos.plugin.auth.constant.SignType;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import java.net.URLEncoder;
Expand All @@ -55,6 +57,8 @@
@Component
public class ConfigQueryRequestHandler extends RequestHandler<ConfigQueryRequest, ConfigQueryResponse> {

private static final Logger LOGGER = LoggerFactory.getLogger(ConfigQueryRequestHandler.class);

private final ConfigQueryChainService configQueryChainService;

public ConfigQueryRequestHandler(ConfigQueryChainService configQueryChainService) {
Expand Down Expand Up @@ -129,6 +133,7 @@ public ConfigQueryResponse handle(ConfigQueryRequest request, RequestMeta meta)
return response;

} catch (Exception e) {
LOGGER.error("Failed to handle grpc configuration query", e);
return ConfigQueryResponse.buildFailResponse(ResponseCode.FAIL.getCode(), e.getMessage());
}

Expand Down

0 comments on commit 5600cd5

Please sign in to comment.