add log
This commit is contained in:
@@ -70,6 +70,7 @@ abstract public class ChannelAction extends Action {
|
|||||||
try {
|
try {
|
||||||
ts = Long.parseLong(timestamp);
|
ts = Long.parseLong(timestamp);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
LOG.error("Channel timestamp:{} invalid", timestamp);
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
Utility.printExecption(LOG, e, IMExceptionEvent.EventType.CHANNEL_API_Exception);
|
Utility.printExecption(LOG, e, IMExceptionEvent.EventType.CHANNEL_API_Exception);
|
||||||
return ErrorCode.ERROR_CODE_API_NOT_SIGNED;
|
return ErrorCode.ERROR_CODE_API_NOT_SIGNED;
|
||||||
@@ -81,7 +82,7 @@ abstract public class ChannelAction extends Action {
|
|||||||
|
|
||||||
channelInfo = messagesStore.getChannelInfo(cid);
|
channelInfo = messagesStore.getChannelInfo(cid);
|
||||||
if (channelInfo == null) {
|
if (channelInfo == null) {
|
||||||
return ErrorCode.INVALID_PARAMETER;
|
return ErrorCode.ERROR_CODE_CHANNEL_NO_EXIST;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (StringUtil.isNullOrEmpty(channelInfo.getSecret())) {
|
if (StringUtil.isNullOrEmpty(channelInfo.getSecret())) {
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ public enum ErrorCode {
|
|||||||
ERROR_CODE_WS_NOT_CONFIGURED_CORRECTLY(28, "ws not configured correctly"),
|
ERROR_CODE_WS_NOT_CONFIGURED_CORRECTLY(28, "ws not configured correctly"),
|
||||||
ERROR_CODE_CONFERENCE_ROOM_NOT_EXIST(60, "conference room not exist"),
|
ERROR_CODE_CONFERENCE_ROOM_NOT_EXIST(60, "conference room not exist"),
|
||||||
|
|
||||||
|
ERROR_CODE_CHANNEL_NO_EXIST(236, "channel no exist"),
|
||||||
ERROR_CODE_CHANNEL_NO_SECRET(237, "channel no secret"),
|
ERROR_CODE_CHANNEL_NO_SECRET(237, "channel no secret"),
|
||||||
ERROR_CODE_USER_NOT_PREPARED(238, "user not prepared"),
|
ERROR_CODE_USER_NOT_PREPARED(238, "user not prepared"),
|
||||||
ERROR_CODE_API_NOT_SIGNED(239, "api not signed or sign parameter not completion"),
|
ERROR_CODE_API_NOT_SIGNED(239, "api not signed or sign parameter not completion"),
|
||||||
|
|||||||
Reference in New Issue
Block a user