Commit 41583da8 by Li Feifei

refactoring

parents a3ebadbd 754a505c
...@@ -49,6 +49,13 @@ func ProvideHTTP(endpoint string, grpcServer *grpc.Server) *http.Server { ...@@ -49,6 +49,13 @@ func ProvideHTTP(endpoint string, grpcServer *grpc.Server) *http.Server {
beeLogger.Log.Fatalf("Register Endpoint err: %v", err) beeLogger.Log.Fatalf("Register Endpoint err: %v", err)
} }
//im用户
err = pb.RegisterImUserHandlerFromEndpoint(ctx, gwmux, endpoint, dopts)
if err != nil {
beeLogger.Log.Fatalf("Register imUser err: %v", err)
}
//新建mux,它是http的请求复用器 //新建mux,它是http的请求复用器
mux := http.NewServeMux() mux := http.NewServeMux()
//注册gwmux //注册gwmux
......
...@@ -64,6 +64,7 @@ ...@@ -64,6 +64,7 @@
{"level":"info","ts":"2020-07-06T18:25:32.479+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-06T18:25:32+08:00","grpc.request.deadline":"2020-07-06T18:25:33+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLogin","grpc.code":"OK","grpc.time_ms":409.1629943847656} {"level":"info","ts":"2020-07-06T18:25:32.479+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-06T18:25:32+08:00","grpc.request.deadline":"2020-07-06T18:25:33+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLogin","grpc.code":"OK","grpc.time_ms":409.1629943847656}
{"level":"info","ts":"2020-07-06T18:25:40.062+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-06T18:25:39+08:00","grpc.request.deadline":"2020-07-06T18:25:40+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLogin","grpc.code":"OK","grpc.time_ms":351.3949890136719} {"level":"info","ts":"2020-07-06T18:25:40.062+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-06T18:25:39+08:00","grpc.request.deadline":"2020-07-06T18:25:40+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLogin","grpc.code":"OK","grpc.time_ms":351.3949890136719}
{"level":"info","ts":"2020-07-06T18:26:17.580+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-06T18:26:17+08:00","grpc.request.deadline":"2020-07-06T18:26:18+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLoginOut","grpc.code":"OK","grpc.time_ms":343.54998779296875} {"level":"info","ts":"2020-07-06T18:26:17.580+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-06T18:26:17+08:00","grpc.request.deadline":"2020-07-06T18:26:18+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLoginOut","grpc.code":"OK","grpc.time_ms":343.54998779296875}
<<<<<<< HEAD
{"level":"info","ts":"2020-07-07T16:32:27.831+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-07T16:32:27+08:00","grpc.request.deadline":"2020-07-07T16:32:30+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImFriendService","grpc.method":"All","grpc.code":"OK","grpc.time_ms":22.570999145507812} {"level":"info","ts":"2020-07-07T16:32:27.831+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-07T16:32:27+08:00","grpc.request.deadline":"2020-07-07T16:32:30+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImFriendService","grpc.method":"All","grpc.code":"OK","grpc.time_ms":22.570999145507812}
{"level":"info","ts":"2020-07-07T16:32:47.765+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-07T16:32:47+08:00","grpc.request.deadline":"2020-07-07T16:32:50+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImFriendService","grpc.method":"All","grpc.code":"OK","grpc.time_ms":24.437999725341797} {"level":"info","ts":"2020-07-07T16:32:47.765+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-07T16:32:47+08:00","grpc.request.deadline":"2020-07-07T16:32:50+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImFriendService","grpc.method":"All","grpc.code":"OK","grpc.time_ms":24.437999725341797}
{"level":"info","ts":"2020-07-07T16:32:53.227+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-07T16:32:53+08:00","grpc.request.deadline":"2020-07-07T16:32:56+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImFriendService","grpc.method":"All","grpc.code":"OK","grpc.time_ms":13.187999725341797} {"level":"info","ts":"2020-07-07T16:32:53.227+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-07T16:32:53+08:00","grpc.request.deadline":"2020-07-07T16:32:56+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImFriendService","grpc.method":"All","grpc.code":"OK","grpc.time_ms":13.187999725341797}
...@@ -1758,3 +1759,138 @@ ...@@ -1758,3 +1759,138 @@
{"level":"info","ts":"2020-07-13T11:21:20.084+0800","caller":"grpclog/grpclog.go:33","msg":"Channel Connectivity change to CONNECTING","system":"grpc","grpc_log":true} {"level":"info","ts":"2020-07-13T11:21:20.084+0800","caller":"grpclog/grpclog.go:33","msg":"Channel Connectivity change to CONNECTING","system":"grpc","grpc_log":true}
{"level":"info","ts":"2020-07-13T11:21:20.084+0800","caller":"grpclog/grpclog.go:33","msg":"Subchannel Connectivity change to READY","system":"grpc","grpc_log":true} {"level":"info","ts":"2020-07-13T11:21:20.084+0800","caller":"grpclog/grpclog.go:33","msg":"Subchannel Connectivity change to READY","system":"grpc","grpc_log":true}
{"level":"info","ts":"2020-07-13T11:21:20.085+0800","caller":"grpclog/grpclog.go:33","msg":"Channel Connectivity change to READY","system":"grpc","grpc_log":true} {"level":"info","ts":"2020-07-13T11:21:20.085+0800","caller":"grpclog/grpclog.go:33","msg":"Channel Connectivity change to READY","system":"grpc","grpc_log":true}
{"level":"error","ts":"2020-07-07T15:39:36.585+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code Code(403)","grpc.start_time":"2020-07-07T15:39:36+08:00","grpc.request.deadline":"2020-07-07T15:39:37+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ChatRoomUser","grpc.method":"ChatRoomUserSetRole","error":"rpc error: code = Code(403) desc = 不是创建者不能设置管理员","grpc.code":"Code(403)","grpc.time_ms":14.347999572753906}
{"level":"error","ts":"2020-07-07T15:40:23.386+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code Code(404)","grpc.start_time":"2020-07-07T15:40:23+08:00","grpc.request.deadline":"2020-07-07T15:40:24+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ChatRoomUser","grpc.method":"ChatRoomUserSetRole","error":"rpc error: code = Code(404) desc = 该操作者不存在","grpc.code":"Code(404)","grpc.time_ms":26.058000564575195}
{"level":"error","ts":"2020-07-07T15:52:55.565+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code Code(20438)","grpc.start_time":"2020-07-07T15:52:54+08:00","grpc.request.deadline":"2020-07-07T15:52:55+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ChatRoomUser","grpc.method":"AddOperator","error":"rpc error: code = Code(20438) desc = 该聊天室已存在管理员","grpc.code":"Code(20438)","grpc.time_ms":612.52001953125}
{"level":"info","ts":"2020-07-07T16:07:10.036+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-07T16:07:10+08:00","grpc.request.deadline":"2020-07-07T16:07:11+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ChatRoomUser","grpc.method":"AddOperator","grpc.code":"OK","grpc.time_ms":25.26799964904785}
{"level":"info","ts":"2020-07-07T16:10:47.522+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-07T16:10:47+08:00","grpc.request.deadline":"2020-07-07T16:10:48+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ChatRoomUser","grpc.method":"ChatRoomUserAdd","grpc.code":"OK","grpc.time_ms":18.670000076293945}
{"level":"info","ts":"2020-07-07T16:11:05.757+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-07T16:11:05+08:00","grpc.request.deadline":"2020-07-07T16:11:06+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ChatRoomUser","grpc.method":"ChatRoomUserAdd","grpc.code":"OK","grpc.time_ms":14.53499984741211}
{"level":"info","ts":"2020-07-07T16:14:09.886+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-07T16:14:09+08:00","grpc.request.deadline":"2020-07-07T16:14:10+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ChatRoomUser","grpc.method":"ChatRoomUserAdd","grpc.code":"OK","grpc.time_ms":15.65999984741211}
{"level":"error","ts":"2020-07-07T16:14:11.733+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code Code(20438)","grpc.start_time":"2020-07-07T16:14:11+08:00","grpc.request.deadline":"2020-07-07T16:14:12+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ChatRoomUser","grpc.method":"ChatRoomUserAdd","error":"rpc error: code = Code(20438) desc = 聊天室已存在该用户","grpc.code":"Code(20438)","grpc.time_ms":7.2179999351501465}
{"level":"error","ts":"2020-07-07T16:14:41.510+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code Code(404)","grpc.start_time":"2020-07-07T16:14:41+08:00","grpc.request.deadline":"2020-07-07T16:14:42+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ChatRoomUser","grpc.method":"ChatRoomUserSetRole","error":"rpc error: code = Code(404) desc = 不是该聊天室用户","grpc.code":"Code(404)","grpc.time_ms":26.184999465942383}
{"level":"error","ts":"2020-07-07T16:15:13.743+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code Code(403)","grpc.start_time":"2020-07-07T16:15:13+08:00","grpc.request.deadline":"2020-07-07T16:15:14+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ChatRoomUser","grpc.method":"ChatRoomUserSetRole","error":"rpc error: code = Code(403) desc = 不是创建者不能设置管理员","grpc.code":"Code(403)","grpc.time_ms":6.691999912261963}
{"level":"info","ts":"2020-07-07T16:15:27.048+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-07T16:15:27+08:00","grpc.request.deadline":"2020-07-07T16:15:28+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ChatRoomUser","grpc.method":"ChatRoomUserSetRole","grpc.code":"OK","grpc.time_ms":37.08100128173828}
{"level":"info","ts":"2020-07-07T16:16:31.165+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-07T16:16:31+08:00","grpc.request.deadline":"2020-07-07T16:16:32+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ChatRoomUser","grpc.method":"ChatRoomUserAdd","grpc.code":"OK","grpc.time_ms":16.486000061035156}
{"level":"error","ts":"2020-07-07T16:16:40.034+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code Code(20438)","grpc.start_time":"2020-07-07T16:16:40+08:00","grpc.request.deadline":"2020-07-07T16:16:41+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ChatRoomUser","grpc.method":"ChatRoomUserAdd","error":"rpc error: code = Code(20438) desc = 聊天室已存在该用户","grpc.code":"Code(20438)","grpc.time_ms":7.808000087738037}
{"level":"info","ts":"2020-07-07T16:17:02.202+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-07T16:17:02+08:00","grpc.request.deadline":"2020-07-07T16:17:03+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ChatRoomUser","grpc.method":"ChatRoomUserAdd","grpc.code":"OK","grpc.time_ms":13.067999839782715}
{"level":"error","ts":"2020-07-07T16:17:24.309+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code Code(403)","grpc.start_time":"2020-07-07T16:17:24+08:00","grpc.request.deadline":"2020-07-07T16:17:25+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ChatRoomUser","grpc.method":"ChatRoomUserSetRole","error":"rpc error: code = Code(403) desc = 不是创建者不能设置管理员","grpc.code":"Code(403)","grpc.time_ms":9.40999984741211}
{"level":"error","ts":"2020-07-07T16:17:32.724+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code Code(403)","grpc.start_time":"2020-07-07T16:17:32+08:00","grpc.request.deadline":"2020-07-07T16:17:33+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ChatRoomUser","grpc.method":"ChatRoomUserSetRole","error":"rpc error: code = Code(403) desc = 没有操作权限","grpc.code":"Code(403)","grpc.time_ms":7.089000225067139}
{"level":"error","ts":"2020-07-07T16:20:53.546+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code Code(403)","grpc.start_time":"2020-07-07T16:20:53+08:00","grpc.request.deadline":"2020-07-07T16:20:54+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ChatRoomUser","grpc.method":"ChatRoomUserSetRole","error":"rpc error: code = Code(403) desc = 没有操作权限","grpc.code":"Code(403)","grpc.time_ms":20.570999145507812}
{"level":"error","ts":"2020-07-07T16:21:26.414+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code Code(417)","grpc.start_time":"2020-07-07T16:21:26+08:00","grpc.request.deadline":"2020-07-07T16:21:27+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ChatRoomUser","grpc.method":"ChatRoomUserSetRole","error":"rpc error: code = Code(417) desc = 已经是该种角色了,不用重复设置","grpc.code":"Code(417)","grpc.time_ms":13.729999542236328}
{"level":"error","ts":"2020-07-07T16:24:30.082+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code Code(417)","grpc.start_time":"2020-07-07T16:24:30+08:00","grpc.request.deadline":"2020-07-07T16:24:31+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ChatRoomUser","grpc.method":"ChatRoomUserSetRole","error":"rpc error: code = Code(417) desc = 已经是该种角色了,不用重复设置","grpc.code":"Code(417)","grpc.time_ms":15.961999893188477}
{"level":"info","ts":"2020-07-07T16:24:42.363+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-07T16:24:42+08:00","grpc.request.deadline":"2020-07-07T16:24:43+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ChatRoomUser","grpc.method":"ChatRoomUserSetRole","grpc.code":"OK","grpc.time_ms":66.63600158691406}
{"level":"error","ts":"2020-07-07T16:27:04.539+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code Code(417)","grpc.start_time":"2020-07-07T16:27:04+08:00","grpc.request.deadline":"2020-07-07T16:27:05+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ChatRoomUser","grpc.method":"ChatRoomUserSetRole","error":"rpc error: code = Code(417) desc = 已经是该种角色了,不用重复设置","grpc.code":"Code(417)","grpc.time_ms":33.869998931884766}
{"level":"info","ts":"2020-07-07T16:27:17.998+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-07T16:27:17+08:00","grpc.request.deadline":"2020-07-07T16:27:18+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ChatRoomUser","grpc.method":"ChatRoomUserSetRole","grpc.code":"OK","grpc.time_ms":35.52799987792969}
{"level":"info","ts":"2020-07-07T16:31:45.832+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-07T16:31:45+08:00","grpc.request.deadline":"2020-07-07T16:31:46+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ChatRoomUser","grpc.method":"ChatRoomUserDel","grpc.code":"OK","grpc.time_ms":12.821999549865723}
{"level":"info","ts":"2020-07-07T16:31:56.322+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-07T16:31:56+08:00","grpc.request.deadline":"2020-07-07T16:31:57+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ChatRoomUser","grpc.method":"ChatRoomUserDel","grpc.code":"OK","grpc.time_ms":12.520999908447266}
{"level":"info","ts":"2020-07-07T16:39:52.912+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-07T16:39:52+08:00","grpc.request.deadline":"2020-07-07T16:39:53+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ChatRoomUser","grpc.method":"ChatRoomUserDel","grpc.code":"OK","grpc.time_ms":28.31399917602539}
{"level":"error","ts":"2020-07-08T15:19:11.490+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code Code(500)","grpc.start_time":"2020-07-08T15:19:11+08:00","grpc.request.deadline":"2020-07-08T15:19:12+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserRegister","error":"rpc error: code = Code(500) desc = 注册失败","grpc.code":"Code(500)","grpc.time_ms":40.96799850463867}
{"level":"info","ts":"2020-07-08T15:25:53.390+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-08T15:25:53+08:00","grpc.request.deadline":"2020-07-08T15:25:54+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserRegister","grpc.code":"OK","grpc.time_ms":27.540000915527344}
{"level":"info","ts":"2020-07-08T16:19:20.404+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-08T16:19:20+08:00","grpc.request.deadline":"2020-07-08T16:19:21+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserRegister","grpc.code":"OK","grpc.time_ms":14.057999610900879}
{"level":"info","ts":"2020-07-08T16:20:43.347+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-08T16:20:43+08:00","grpc.request.deadline":"2020-07-08T16:20:44+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserRegister","grpc.code":"OK","grpc.time_ms":25.868999481201172}
{"level":"error","ts":"2020-07-08T16:21:49.289+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code Code(10438)","grpc.start_time":"2020-07-08T16:21:49+08:00","grpc.request.deadline":"2020-07-08T16:21:50+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserRegister","error":"rpc error: code = Code(10438) desc = 用户已存在","grpc.code":"Code(10438)","grpc.time_ms":35.65599822998047}
{"level":"info","ts":"2020-07-08T16:30:34.053+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-08T16:30:34+08:00","grpc.request.deadline":"2020-07-08T16:30:35+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserRegister","grpc.code":"OK","grpc.time_ms":23.992000579833984}
{"level":"info","ts":"2020-07-08T16:33:23.895+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-08T16:33:23+08:00","grpc.request.deadline":"2020-07-08T16:33:24+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserRegister","grpc.code":"OK","grpc.time_ms":25.959999084472656}
{"level":"info","ts":"2020-07-08T16:36:02.452+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-08T16:36:02+08:00","grpc.request.deadline":"2020-07-08T16:36:03+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserOne","grpc.code":"OK","grpc.time_ms":25.062000274658203}
{"level":"info","ts":"2020-07-08T16:45:40.111+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-08T16:45:40+08:00","grpc.request.deadline":"2020-07-08T16:45:41+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserOne","grpc.code":"OK","grpc.time_ms":15.369000434875488}
{"level":"info","ts":"2020-07-08T16:46:03.642+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-08T16:46:03+08:00","grpc.request.deadline":"2020-07-08T16:46:04+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserOne","grpc.code":"OK","grpc.time_ms":24.37700080871582}
{"level":"info","ts":"2020-07-08T16:50:57.448+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-08T16:50:57+08:00","grpc.request.deadline":"2020-07-08T16:50:58+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImuserSave","grpc.code":"OK","grpc.time_ms":66.7750015258789}
{"level":"info","ts":"2020-07-08T16:56:49.332+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-08T16:56:49+08:00","grpc.request.deadline":"2020-07-08T16:56:50+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImuserSave","grpc.code":"OK","grpc.time_ms":97.46399688720703}
{"level":"info","ts":"2020-07-08T16:57:36.833+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-08T16:57:36+08:00","grpc.request.deadline":"2020-07-08T16:57:37+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImuserSave","grpc.code":"OK","grpc.time_ms":25.275999069213867}
{"level":"info","ts":"2020-07-08T17:03:47.397+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-08T17:03:47+08:00","grpc.request.deadline":"2020-07-08T17:03:48+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserOne","grpc.code":"OK","grpc.time_ms":13.131999969482422}
{"level":"info","ts":"2020-07-10T14:08:49.549+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-10T14:08:49+08:00","grpc.request.deadline":"2020-07-10T14:08:50+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLogin","grpc.code":"OK","grpc.time_ms":71.91500091552734}
{"level":"info","ts":"2020-07-10T14:12:11.499+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-10T14:12:11+08:00","grpc.request.deadline":"2020-07-10T14:12:12+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLogin","grpc.code":"OK","grpc.time_ms":12.718000411987305}
{"level":"info","ts":"2020-07-10T14:13:30.899+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-10T14:13:30+08:00","grpc.request.deadline":"2020-07-10T14:13:31+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLogin","grpc.code":"OK","grpc.time_ms":36.08300018310547}
{"level":"info","ts":"2020-07-10T14:37:45.634+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-10T14:37:45+08:00","grpc.request.deadline":"2020-07-10T14:37:46+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLogin","grpc.code":"OK","grpc.time_ms":100.88800048828125}
{"level":"info","ts":"2020-07-10T14:38:41.981+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-10T14:38:41+08:00","grpc.request.deadline":"2020-07-10T14:38:42+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLogin","grpc.code":"OK","grpc.time_ms":9.734000205993652}
{"level":"info","ts":"2020-07-10T14:40:10.513+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-10T14:40:10+08:00","grpc.request.deadline":"2020-07-10T14:40:11+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLogin","grpc.code":"OK","grpc.time_ms":35.78300094604492}
{"level":"info","ts":"2020-07-10T14:40:31.738+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-10T14:40:31+08:00","grpc.request.deadline":"2020-07-10T14:40:32+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLogin","grpc.code":"OK","grpc.time_ms":29.584999084472656}
{"level":"info","ts":"2020-07-10T14:49:03.563+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-10T14:49:03+08:00","grpc.request.deadline":"2020-07-10T14:49:04+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLogin","grpc.code":"OK","grpc.time_ms":20.8799991607666}
{"level":"info","ts":"2020-07-10T14:50:05.530+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-10T14:50:05+08:00","grpc.request.deadline":"2020-07-10T14:50:06+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLogin","grpc.code":"OK","grpc.time_ms":51.65599822998047}
{"level":"info","ts":"2020-07-10T14:50:09.559+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-10T14:50:09+08:00","grpc.request.deadline":"2020-07-10T14:50:10+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLogin","grpc.code":"OK","grpc.time_ms":27.049999237060547}
{"level":"info","ts":"2020-07-10T14:58:45.631+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-10T14:58:45+08:00","grpc.request.deadline":"2020-07-10T14:58:46+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLogin","grpc.code":"OK","grpc.time_ms":26.072999954223633}
{"level":"info","ts":"2020-07-10T15:09:21.545+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-10T15:09:21+08:00","grpc.request.deadline":"2020-07-10T15:09:22+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLogin","grpc.code":"OK","grpc.time_ms":19.784000396728516}
{"level":"info","ts":"2020-07-10T15:12:01.334+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-10T15:12:01+08:00","grpc.request.deadline":"2020-07-10T15:12:02+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLogin","grpc.code":"OK","grpc.time_ms":59.571998596191406}
{"level":"error","ts":"2020-07-10T15:15:02.510+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code Code(417)","grpc.start_time":"2020-07-10T15:15:02+08:00","grpc.request.deadline":"2020-07-10T15:15:03+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLogin","error":"rpc error: code = Code(417) desc = 该种设备已经登录了","grpc.code":"Code(417)","grpc.time_ms":40.90800094604492}
{"level":"error","ts":"2020-07-10T15:19:56.082+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code Code(417)","grpc.start_time":"2020-07-10T15:19:56+08:00","grpc.request.deadline":"2020-07-10T15:19:57+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLogin","error":"rpc error: code = Code(417) desc = 该种设备已经登录了","grpc.code":"Code(417)","grpc.time_ms":26.10300064086914}
{"level":"info","ts":"2020-07-10T15:20:17.310+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-10T15:20:17+08:00","grpc.request.deadline":"2020-07-10T15:20:18+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLogin","grpc.code":"OK","grpc.time_ms":11.213000297546387}
{"level":"info","ts":"2020-07-10T15:20:49.734+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-10T15:20:49+08:00","grpc.request.deadline":"2020-07-10T15:20:50+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLogin","grpc.code":"OK","grpc.time_ms":16.420000076293945}
{"level":"error","ts":"2020-07-10T15:24:10.935+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code Code(417)","grpc.start_time":"2020-07-10T15:24:10+08:00","grpc.request.deadline":"2020-07-10T15:24:11+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLogin","error":"rpc error: code = Code(417) desc = 该种设备已经登录了","grpc.code":"Code(417)","grpc.time_ms":34.97999954223633}
{"level":"info","ts":"2020-07-10T15:24:25.202+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-10T15:24:25+08:00","grpc.request.deadline":"2020-07-10T15:24:26+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLogin","grpc.code":"OK","grpc.time_ms":13.814000129699707}
{"level":"info","ts":"2020-07-10T15:24:45.828+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-10T15:24:45+08:00","grpc.request.deadline":"2020-07-10T15:24:46+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLogin","grpc.code":"OK","grpc.time_ms":12.715999603271484}
{"level":"error","ts":"2020-07-10T15:30:28.250+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code Code(417)","grpc.start_time":"2020-07-10T15:30:28+08:00","grpc.request.deadline":"2020-07-10T15:30:29+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLogin","error":"rpc error: code = Code(417) desc = 该种设备已经登录了","grpc.code":"Code(417)","grpc.time_ms":17.891000747680664}
{"level":"info","ts":"2020-07-10T15:30:59.420+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-10T15:30:59+08:00","grpc.request.deadline":"2020-07-10T15:31:00+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLogin","grpc.code":"OK","grpc.time_ms":13.399999618530273}
{"level":"error","ts":"2020-07-10T15:31:36.536+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code Code(417)","grpc.start_time":"2020-07-10T15:31:36+08:00","grpc.request.deadline":"2020-07-10T15:31:37+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLogin","error":"rpc error: code = Code(417) desc = 该种设备已经登录了","grpc.code":"Code(417)","grpc.time_ms":14.180000305175781}
{"level":"info","ts":"2020-07-10T15:31:49.344+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-10T15:31:49+08:00","grpc.request.deadline":"2020-07-10T15:31:50+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLogin","grpc.code":"OK","grpc.time_ms":36.604000091552734}
{"level":"error","ts":"2020-07-10T15:46:14.916+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code Code(500)","grpc.start_time":"2020-07-10T15:46:14+08:00","grpc.request.deadline":"2020-07-10T15:46:15+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLoginOut","error":"rpc error: code = Code(500) desc = 数据操作失败","grpc.code":"Code(500)","grpc.time_ms":24.798999786376953}
{"level":"error","ts":"2020-07-10T15:46:40.107+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code Code(404)","grpc.start_time":"2020-07-10T15:46:40+08:00","grpc.request.deadline":"2020-07-10T15:46:41+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLoginOut","error":"rpc error: code = Code(404) desc = 没有登录信息","grpc.code":"Code(404)","grpc.time_ms":34.446998596191406}
{"level":"error","ts":"2020-07-10T15:47:21.915+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code Code(404)","grpc.start_time":"2020-07-10T15:47:21+08:00","grpc.request.deadline":"2020-07-10T15:47:22+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLoginOut","error":"rpc error: code = Code(404) desc = 没有登录信息","grpc.code":"Code(404)","grpc.time_ms":13.975000381469727}
{"level":"error","ts":"2020-07-10T15:48:06.945+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code Code(404)","grpc.start_time":"2020-07-10T15:48:06+08:00","grpc.request.deadline":"2020-07-10T15:48:07+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLoginOut","error":"rpc error: code = Code(404) desc = 没有登录信息","grpc.code":"Code(404)","grpc.time_ms":23.393999099731445}
{"level":"info","ts":"2020-07-10T15:48:36.102+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-10T15:48:36+08:00","grpc.request.deadline":"2020-07-10T15:48:37+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLoginOut","grpc.code":"OK","grpc.time_ms":47.58599853515625}
{"level":"info","ts":"2020-07-10T15:48:57.954+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-10T15:48:57+08:00","grpc.request.deadline":"2020-07-10T15:48:58+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLoginOut","grpc.code":"OK","grpc.time_ms":13.274999618530273}
{"level":"info","ts":"2020-07-10T15:50:04.820+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-10T15:50:04+08:00","grpc.request.deadline":"2020-07-10T15:50:05+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLoginOut","grpc.code":"OK","grpc.time_ms":25.288000106811523}
{"level":"info","ts":"2020-07-10T15:50:59.767+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-10T15:50:59+08:00","grpc.request.deadline":"2020-07-10T15:51:00+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLoginOut","grpc.code":"OK","grpc.time_ms":10.08899974822998}
{"level":"info","ts":"2020-07-10T15:51:50.204+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-10T15:51:50+08:00","grpc.request.deadline":"2020-07-10T15:51:51+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLogin","grpc.code":"OK","grpc.time_ms":14.052000045776367}
{"level":"error","ts":"2020-07-10T15:51:53.645+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code Code(417)","grpc.start_time":"2020-07-10T15:51:53+08:00","grpc.request.deadline":"2020-07-10T15:51:54+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLogin","error":"rpc error: code = Code(417) desc = 该种设备已经登录了","grpc.code":"Code(417)","grpc.time_ms":10.27299976348877}
{"level":"info","ts":"2020-07-10T15:52:12.529+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-10T15:52:12+08:00","grpc.request.deadline":"2020-07-10T15:52:13+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLogin","grpc.code":"OK","grpc.time_ms":12.107999801635742}
{"level":"error","ts":"2020-07-10T15:59:05.636+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code Code(417)","grpc.start_time":"2020-07-10T15:59:05+08:00","grpc.request.deadline":"2020-07-10T15:59:06+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLogin","error":"rpc error: code = Code(417) desc = 该种设备已经登录了","grpc.code":"Code(417)","grpc.time_ms":22.73900032043457}
{"level":"info","ts":"2020-07-10T15:59:31.811+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-10T15:59:31+08:00","grpc.request.deadline":"2020-07-10T15:59:32+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLogin","grpc.code":"OK","grpc.time_ms":330.43701171875}
{"level":"info","ts":"2020-07-10T15:59:47.075+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-10T15:59:47+08:00","grpc.request.deadline":"2020-07-10T15:59:48+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLogin","grpc.code":"OK","grpc.time_ms":39.354000091552734}
{"level":"info","ts":"2020-07-10T16:00:03.293+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-10T16:00:03+08:00","grpc.request.deadline":"2020-07-10T16:00:04+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLogin","grpc.code":"OK","grpc.time_ms":12.126999855041504}
{"level":"info","ts":"2020-07-10T16:00:11.841+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-10T16:00:11+08:00","grpc.request.deadline":"2020-07-10T16:00:12+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLogin","grpc.code":"OK","grpc.time_ms":10.831000328063965}
{"level":"info","ts":"2020-07-10T16:00:22.754+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-10T16:00:22+08:00","grpc.request.deadline":"2020-07-10T16:00:23+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLogin","grpc.code":"OK","grpc.time_ms":13.45199966430664}
{"level":"info","ts":"2020-07-10T16:00:45.525+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-10T16:00:45+08:00","grpc.request.deadline":"2020-07-10T16:00:46+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLogin","grpc.code":"OK","grpc.time_ms":19.17099952697754}
{"level":"info","ts":"2020-07-10T16:01:06.374+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-10T16:01:06+08:00","grpc.request.deadline":"2020-07-10T16:01:07+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLoginOut","grpc.code":"OK","grpc.time_ms":13.092000007629395}
{"level":"info","ts":"2020-07-10T16:01:39.508+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-10T16:01:39+08:00","grpc.request.deadline":"2020-07-10T16:01:40+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLoginOut","grpc.code":"OK","grpc.time_ms":11.326000213623047}
{"level":"info","ts":"2020-07-10T16:01:58.855+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-10T16:01:58+08:00","grpc.request.deadline":"2020-07-10T16:01:59+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLoginOut","grpc.code":"OK","grpc.time_ms":23.083999633789062}
{"level":"info","ts":"2020-07-10T16:02:12.937+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code OK","grpc.start_time":"2020-07-10T16:02:12+08:00","grpc.request.deadline":"2020-07-10T16:02:13+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLoginOut","grpc.code":"OK","grpc.time_ms":25.697999954223633}
{"level":"error","ts":"2020-07-10T16:02:20.217+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code Code(404)","grpc.start_time":"2020-07-10T16:02:20+08:00","grpc.request.deadline":"2020-07-10T16:02:21+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLoginOut","error":"rpc error: code = Code(404) desc = 没有登录信息","grpc.code":"Code(404)","grpc.time_ms":13.291999816894531}
{"level":"error","ts":"2020-07-10T16:04:46.553+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code Code(500)","grpc.start_time":"2020-07-10T16:04:46+08:00","grpc.request.deadline":"2020-07-10T16:04:47+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLoginOut","error":"rpc error: code = Code(500) desc = 数据操作失败","grpc.code":"Code(500)","grpc.time_ms":94.88400268554688}
{"level":"error","ts":"2020-07-10T16:05:10.293+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code Code(404)","grpc.start_time":"2020-07-10T16:05:10+08:00","grpc.request.deadline":"2020-07-10T16:05:11+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLoginOut","error":"rpc error: code = Code(404) desc = 没有登录信息","grpc.code":"Code(404)","grpc.time_ms":29.222000122070312}
{"level":"error","ts":"2020-07-10T16:05:14.965+0800","caller":"go-grpc-middleware@v1.2.0/chain.go:25","msg":"finished unary call with code Code(404)","grpc.start_time":"2020-07-10T16:05:14+08:00","grpc.request.deadline":"2020-07-10T16:05:15+08:00","system":"grpc","span.kind":"server","grpc.service":"pb.ImUser","grpc.method":"ImUserLoginOut","error":"rpc error: code = Code(404) desc = 没有登录信息","grpc.code":"Code(404)","grpc.time_ms":18.773000717163086}
{"level":"info","ts":"2020-07-10T18:18:59.786+0800","caller":"grpclog/grpclog.go:33","msg":"parsed scheme: \"\"","system":"grpc","grpc_log":true}
{"level":"info","ts":"2020-07-10T18:18:59.786+0800","caller":"grpclog/grpclog.go:33","msg":"scheme \"\" not registered, fallback to default scheme","system":"grpc","grpc_log":true}
{"level":"info","ts":"2020-07-10T18:18:59.786+0800","caller":"grpclog/grpclog.go:33","msg":"ccResolverWrapper: sending update to cc: {[{127.0.0.1:8000 <nil> 0 <nil>}] <nil> <nil>}","system":"grpc","grpc_log":true}
{"level":"info","ts":"2020-07-10T18:18:59.786+0800","caller":"grpclog/grpclog.go:33","msg":"ClientConn switching balancer to \"pick_first\"","system":"grpc","grpc_log":true}
{"level":"info","ts":"2020-07-10T18:18:59.786+0800","caller":"grpclog/grpclog.go:33","msg":"Channel switches to new LB policy \"pick_first\"","system":"grpc","grpc_log":true}
{"level":"info","ts":"2020-07-10T18:18:59.787+0800","caller":"grpclog/grpclog.go:33","msg":"Subchannel Connectivity change to CONNECTING","system":"grpc","grpc_log":true}
{"level":"info","ts":"2020-07-10T18:18:59.787+0800","caller":"grpclog/grpclog.go:33","msg":"parsed scheme: \"\"","system":"grpc","grpc_log":true}
{"level":"info","ts":"2020-07-10T18:18:59.787+0800","caller":"grpclog/grpclog.go:33","msg":"scheme \"\" not registered, fallback to default scheme","system":"grpc","grpc_log":true}
{"level":"info","ts":"2020-07-10T18:18:59.787+0800","caller":"grpclog/grpclog.go:33","msg":"ccResolverWrapper: sending update to cc: {[{127.0.0.1:8000 <nil> 0 <nil>}] <nil> <nil>}","system":"grpc","grpc_log":true}
{"level":"info","ts":"2020-07-10T18:18:59.787+0800","caller":"grpclog/grpclog.go:33","msg":"Channel Connectivity change to CONNECTING","system":"grpc","grpc_log":true}
{"level":"info","ts":"2020-07-10T18:18:59.787+0800","caller":"grpclog/grpclog.go:33","msg":"Subchannel picks a new address \"127.0.0.1:8000\" to connect","system":"grpc","grpc_log":true}
{"level":"info","ts":"2020-07-10T18:18:59.787+0800","caller":"grpclog/grpclog.go:33","msg":"ClientConn switching balancer to \"pick_first\"","system":"grpc","grpc_log":true}
{"level":"info","ts":"2020-07-10T18:18:59.787+0800","caller":"grpclog/grpclog.go:33","msg":"Channel switches to new LB policy \"pick_first\"","system":"grpc","grpc_log":true}
{"level":"info","ts":"2020-07-10T18:18:59.787+0800","caller":"grpclog/grpclog.go:33","msg":"Subchannel Connectivity change to CONNECTING","system":"grpc","grpc_log":true}
{"level":"warn","ts":"2020-07-10T18:18:59.787+0800","caller":"grpclog/grpclog.go:42","msg":"grpc: addrConn.createTransport failed to connect to {127.0.0.1:8000 127.0.0.1:8000 <nil> 0 <nil>}. Err: connection error: desc = \"transport: Error while dialing dial tcp 127.0.0.1:8000: connect: connection refused\". Reconnecting...","system":"grpc","grpc_log":true}
{"level":"info","ts":"2020-07-10T18:18:59.787+0800","caller":"grpclog/grpclog.go:33","msg":"Channel Connectivity change to CONNECTING","system":"grpc","grpc_log":true}
{"level":"info","ts":"2020-07-10T18:18:59.787+0800","caller":"grpclog/grpclog.go:33","msg":"Subchannel picks a new address \"127.0.0.1:8000\" to connect","system":"grpc","grpc_log":true}
{"level":"info","ts":"2020-07-10T18:18:59.787+0800","caller":"grpclog/grpclog.go:33","msg":"Subchannel Connectivity change to TRANSIENT_FAILURE","system":"grpc","grpc_log":true}
{"level":"info","ts":"2020-07-10T18:18:59.787+0800","caller":"grpclog/grpclog.go:33","msg":"Channel Connectivity change to TRANSIENT_FAILURE","system":"grpc","grpc_log":true}
{"level":"info","ts":"2020-07-10T18:18:59.788+0800","caller":"grpclog/grpclog.go:33","msg":"Subchannel Connectivity change to READY","system":"grpc","grpc_log":true}
{"level":"info","ts":"2020-07-10T18:18:59.788+0800","caller":"grpclog/grpclog.go:33","msg":"Channel Connectivity change to READY","system":"grpc","grpc_log":true}
{"level":"info","ts":"2020-07-10T18:19:00.788+0800","caller":"grpclog/grpclog.go:33","msg":"Subchannel Connectivity change to CONNECTING","system":"grpc","grpc_log":true}
{"level":"info","ts":"2020-07-10T18:19:00.788+0800","caller":"grpclog/grpclog.go:33","msg":"Subchannel picks a new address \"127.0.0.1:8000\" to connect","system":"grpc","grpc_log":true}
{"level":"info","ts":"2020-07-10T18:19:00.788+0800","caller":"grpclog/grpclog.go:33","msg":"Channel Connectivity change to CONNECTING","system":"grpc","grpc_log":true}
{"level":"info","ts":"2020-07-10T18:19:00.789+0800","caller":"grpclog/grpclog.go:33","msg":"Subchannel Connectivity change to READY","system":"grpc","grpc_log":true}
{"level":"info","ts":"2020-07-10T18:19:00.790+0800","caller":"grpclog/grpclog.go:33","msg":"Channel Connectivity change to READY","system":"grpc","grpc_log":true}
{"level":"info","ts":"2020-07-10T18:21:44.342+0800","caller":"grpclog/grpclog.go:33","msg":"parsed scheme: \"\"","system":"grpc","grpc_log":true}
{"level":"info","ts":"2020-07-10T18:21:44.343+0800","caller":"grpclog/grpclog.go:33","msg":"scheme \"\" not registered, fallback to default scheme","system":"grpc","grpc_log":true}
{"level":"info","ts":"2020-07-10T18:21:44.344+0800","caller":"grpclog/grpclog.go:33","msg":"ccResolverWrapper: sending update to cc: {[{127.0.0.1:8000 <nil> 0 <nil>}] <nil> <nil>}","system":"grpc","grpc_log":true}
{"level":"info","ts":"2020-07-10T18:21:44.344+0800","caller":"grpclog/grpclog.go:33","msg":"ClientConn switching balancer to \"pick_first\"","system":"grpc","grpc_log":true}
{"level":"info","ts":"2020-07-10T18:21:44.344+0800","caller":"grpclog/grpclog.go:33","msg":"Channel switches to new LB policy \"pick_first\"","system":"grpc","grpc_log":true}
{"level":"info","ts":"2020-07-10T18:21:44.344+0800","caller":"grpclog/grpclog.go:33","msg":"Subchannel Connectivity change to CONNECTING","system":"grpc","grpc_log":true}
{"level":"info","ts":"2020-07-10T18:21:44.344+0800","caller":"grpclog/grpclog.go:33","msg":"parsed scheme: \"\"","system":"grpc","grpc_log":true}
{"level":"info","ts":"2020-07-10T18:21:44.344+0800","caller":"grpclog/grpclog.go:33","msg":"scheme \"\" not registered, fallback to default scheme","system":"grpc","grpc_log":true}
{"level":"info","ts":"2020-07-10T18:21:44.344+0800","caller":"grpclog/grpclog.go:33","msg":"Channel Connectivity change to CONNECTING","system":"grpc","grpc_log":true}
{"level":"info","ts":"2020-07-10T18:21:44.344+0800","caller":"grpclog/grpclog.go:33","msg":"ccResolverWrapper: sending update to cc: {[{127.0.0.1:8000 <nil> 0 <nil>}] <nil> <nil>}","system":"grpc","grpc_log":true}
{"level":"info","ts":"2020-07-10T18:21:44.344+0800","caller":"grpclog/grpclog.go:33","msg":"ClientConn switching balancer to \"pick_first\"","system":"grpc","grpc_log":true}
{"level":"info","ts":"2020-07-10T18:21:44.344+0800","caller":"grpclog/grpclog.go:33","msg":"Channel switches to new LB policy \"pick_first\"","system":"grpc","grpc_log":true}
{"level":"info","ts":"2020-07-10T18:21:44.344+0800","caller":"grpclog/grpclog.go:33","msg":"Subchannel picks a new address \"127.0.0.1:8000\" to connect","system":"grpc","grpc_log":true}
{"level":"info","ts":"2020-07-10T18:21:44.344+0800","caller":"grpclog/grpclog.go:33","msg":"Subchannel Connectivity change to CONNECTING","system":"grpc","grpc_log":true}
{"level":"info","ts":"2020-07-10T18:21:44.344+0800","caller":"grpclog/grpclog.go:33","msg":"Channel Connectivity change to CONNECTING","system":"grpc","grpc_log":true}
{"level":"info","ts":"2020-07-10T18:21:44.344+0800","caller":"grpclog/grpclog.go:33","msg":"Subchannel picks a new address \"127.0.0.1:8000\" to connect","system":"grpc","grpc_log":true}
{"level":"info","ts":"2020-07-10T18:21:44.345+0800","caller":"grpclog/grpclog.go:33","msg":"Subchannel Connectivity change to READY","system":"grpc","grpc_log":true}
{"level":"info","ts":"2020-07-10T18:21:44.345+0800","caller":"grpclog/grpclog.go:33","msg":"Channel Connectivity change to READY","system":"grpc","grpc_log":true}
{"level":"info","ts":"2020-07-10T18:21:44.345+0800","caller":"grpclog/grpclog.go:33","msg":"Subchannel Connectivity change to READY","system":"grpc","grpc_log":true}
{"level":"info","ts":"2020-07-10T18:21:44.345+0800","caller":"grpclog/grpclog.go:33","msg":"Channel Connectivity change to READY","system":"grpc","grpc_log":true}
...@@ -3,6 +3,7 @@ syntax = "proto3"; ...@@ -3,6 +3,7 @@ syntax = "proto3";
package pb; package pb;
import "u-proto/common.proto"; import "u-proto/common.proto";
import "u-proto/google/api/annotations.proto";
import "github.com/mwitkow/go-proto-validators/validator.proto"; import "github.com/mwitkow/go-proto-validators/validator.proto";
//用户注册修改 //用户注册修改
...@@ -92,7 +93,12 @@ message ImUserListReply{ ...@@ -92,7 +93,12 @@ message ImUserListReply{
service ImUser { service ImUser {
rpc ImUserRegister (ImUserRequest) returns(ImUserRegReply) {} rpc ImUserRegister (ImUserRequest) returns(ImUserRegReply) {}
rpc ImuserSave(ImUserRequest) returns(ImUserSetReply) {} rpc ImuserSave(ImUserRequest) returns(ImUserSetReply) {}
rpc ImUserLogin (ImUserLoginRequest) returns(ImUserRegReply) {} rpc ImUserLogin (ImUserLoginRequest) returns(ImUserRegReply) {
option (google.api.http) ={
post:"/api/v1/im_login",
body:"*"
};
}
rpc ImUserLoginOut (ImUserLoginRequest) returns(ImUserSetReply) {} rpc ImUserLoginOut (ImUserLoginRequest) returns(ImUserSetReply) {}
rpc ImUserForbiddenWords (ImUserSetRequest) returns(ImUserSetReply) {} rpc ImUserForbiddenWords (ImUserSetRequest) returns(ImUserSetReply) {}
rpc ImUserForbiddenAV (ImUserSetRequest) returns(ImUserSetReply) {} rpc ImUserForbiddenAV (ImUserSetRequest) returns(ImUserSetReply) {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment