changed fnID key for consistency in logs (#1324)

This commit is contained in:
Shreya Garge
2018-11-29 14:38:50 +00:00
committed by GitHub
parent b2bb6bc958
commit 6c35b092fd

View File

@@ -45,7 +45,7 @@ func (s *syncResponseWriter) Status() int { return s.status }
// handleFnInvokeCall executes the function, for router handlers
func (s *Server) handleFnInvokeCall(c *gin.Context) {
fnID := c.Param(api.ParamFnID)
ctx, _ := common.LoggerWithFields(c.Request.Context(), logrus.Fields{"fnID": fnID})
ctx, _ := common.LoggerWithFields(c.Request.Context(), logrus.Fields{"fn_id": fnID})
c.Request = c.Request.WithContext(ctx)
err := s.handleFnInvokeCall2(c)
if err != nil {