fixed issue #5029 , add deserializer message

This commit is contained in:
jianghang.loujh
2024-02-04 13:28:27 +08:00
parent e2a64daad8
commit 348d218120
3 changed files with 4 additions and 4 deletions

View File

@@ -224,7 +224,7 @@ public class AdapterProcessor {
logger.error("finish turn off switch of destination:" + canalDestination); logger.error("finish turn off switch of destination:" + canalDestination);
} else { } else {
canalMsgConsumer.ack(); canalMsgConsumer.ack();
logger.error(e.getMessage() + " Error sync but ACK!"); logger.error(e.getMessage() + " Error sync but ACK!", e);
} }
} }
Thread.sleep(500); Thread.sleep(500);

View File

@@ -51,7 +51,7 @@ public class CanalMessageDeserializer {
} }
} }
} catch (Exception e) { } catch (Exception e) {
throw new CanalClientException("deserializer failed", e); throw new CanalClientException("deserializer failed by " + e.getMessage(), e);
} }
} }
} }

View File

@@ -79,7 +79,7 @@ public class CanalMessageSerializerUtil {
} }
} }
} catch (Exception e) { } catch (Exception e) {
throw new RuntimeException("Error when serializing message to byte[] "); throw new RuntimeException("Error when serializing message to byte[] by " + e.getMessage() , e);
} }
return null; return null;
} }
@@ -125,7 +125,7 @@ public class CanalMessageSerializerUtil {
} }
} }
} catch (Exception e) { } catch (Exception e) {
throw new CanalClientException("deserializer failed", e); throw new CanalClientException("deserializer failed by " + e.getMessage(), e);
} }
} }
} }