Skip to content

Commit

Permalink
update: 接口触发日志
Browse files Browse the repository at this point in the history
  • Loading branch information
Anonymous committed Nov 9, 2024
1 parent 4100c45 commit adeff04
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/rest.go
Original file line number Diff line number Diff line change
Expand Up @@ -1463,6 +1463,8 @@ func (s *RestServer) batchInsertItems(ctx context.Context, response *restful.Res
}

func (s *RestServer) insertItems(request *restful.Request, response *restful.Response) {
log.Logger().Info("[insertItems] insert items batchInsertItems")

ctx := context.Background()
if request != nil && request.Request != nil {
ctx = request.Request.Context()
Expand All @@ -1484,6 +1486,8 @@ func (s *RestServer) insertItems(request *restful.Request, response *restful.Res
}

func (s *RestServer) insertItem(request *restful.Request, response *restful.Response) {
log.Logger().Info("[insertItem] insert item batchInsertItems")

ctx := context.Background()
if request != nil && request.Request != nil {
ctx = request.Request.Context()
Expand Down

0 comments on commit adeff04

Please sign in to comment.