diff --git a/Service/Car/Codec/Encoder.cs b/Service/Car/Codec/Encoder.cs index f64cf63..ea80435 100644 --- a/Service/Car/Codec/Encoder.cs +++ b/Service/Car/Codec/Encoder.cs @@ -23,7 +23,8 @@ public class Encoder : MessageToByteEncoder protected override void Encode(IChannelHandlerContext context, BaseMsg obj, IByteBuffer output) { byte[] bytes = obj.ToBytes(); - output.WriteBytes(bytes); - output.WriteBytes(CarConst.EndChar); + List list = new List(bytes); + list.AddRange(CarConst.EndChar); + output.WriteBytes(list.ToArray()); } } \ No newline at end of file diff --git a/Service/Car/Server/CarServer.cs b/Service/Car/Server/CarServer.cs index 15ac747..78956c4 100644 --- a/Service/Car/Server/CarServer.cs +++ b/Service/Car/Server/CarServer.cs @@ -37,6 +37,7 @@ public class CarServer : TcpServer public CarServer() : base() { this.ChannelInActiveAction = Clean; + this.LogLevel = DotNetty.Handlers.Logging.LogLevel.TRACE; } ///