Error code is managed with constants (#10771) (#11054)

This commit is contained in:
cnjxzhao 2022-11-29 20:36:07 +08:00 committed by GitHub
parent f670fa33ad
commit d07d89159f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -71,9 +71,9 @@ public interface LoggerCodeConstants {
String COMMON_FAILED_OVERRIDE_FIELD = "0-24";
String COMMON_FAILED_LOAD_MAPPING_CACHE = "0-24";
String COMMON_FAILED_LOAD_MAPPING_CACHE = "0-25";
String COMMON_METADATA_PROCESSOR = "0-25";
String COMMON_METADATA_PROCESSOR = "0-26";
// registry module
String REGISTRY_ADDRESS_INVALID = "1-1";

View File

@ -157,7 +157,7 @@ public class DubboCodec extends ExchangeCodec {
req.setData(data);
} catch (Throwable t) {
if (log.isWarnEnabled()) {
log.warn("Decode request failed: " + t.getMessage(), t);
log.warn(PROTOCOL_FAILED_DECODE, "", "", "Decode request failed: " + t.getMessage(), t);
}
// bad request
req.setBroken(true);