@@ -16,14 +16,14 @@ func HttpLog(logOutputService *logservice.LogOutputService) gin.HandlerFunc {
1616 var body map [string ]interface {}
1717
1818 if err := c .ShouldBindJSON (& body ); err != nil {
19- catcher .Error ("Error binding http JSON" , err , map [ string ] any {} )
19+ catcher .Error ("Error binding http JSON" , err , nil )
2020 c .JSON (http .StatusBadRequest , gin.H {"error" : err .Error ()})
2121 return
2222 }
2323
2424 logType , source , err := getHeaderAndSource (c )
2525 if err != nil {
26- catcher .Error ("Error getting header and source:" , err , map [ string ] any {} )
26+ catcher .Error ("Error getting header and source:" , err , nil )
2727 c .JSON (http .StatusBadRequest , gin.H {"error" : err .Error ()})
2828 return
2929 }
@@ -36,7 +36,7 @@ func HttpLog(logOutputService *logservice.LogOutputService) gin.HandlerFunc {
3636
3737 jsonBytes , err := json .Marshal (body )
3838 if err != nil {
39- catcher .Error ("Error marshalling http JSON" , err , map [ string ] any {} )
39+ catcher .Error ("Error marshalling http JSON" , err , nil )
4040 c .JSON (http .StatusInternalServerError , gin.H {"error" : "unable to convert JSON to string" })
4141 return
4242 }
@@ -54,13 +54,13 @@ func HttpBulkLog(logOutputService *logservice.LogOutputService) gin.HandlerFunc
5454 var body []interface {}
5555
5656 if err := c .ShouldBindJSON (& body ); err != nil {
57- catcher .Error ("Error binding bulk JSON" , err , map [ string ] any {} )
57+ catcher .Error ("Error binding bulk JSON" , err , nil )
5858 c .JSON (http .StatusBadRequest , gin.H {"error" : err .Error ()})
5959 return
6060 }
6161 logType , source , err := getHeaderAndSource (c )
6262 if err != nil {
63- catcher .Error ("Error getting header and source:" , err , map [ string ] any {} )
63+ catcher .Error ("Error getting header and source:" , err , nil )
6464 c .JSON (http .StatusBadRequest , gin.H {"error" : err .Error ()})
6565 return
6666 }
@@ -79,7 +79,7 @@ func HttpBulkLog(logOutputService *logservice.LogOutputService) gin.HandlerFunc
7979
8080 str , err := json .Marshal (v )
8181 if err != nil {
82- catcher .Error ("Error marshalling bulk JSON" , err , map [ string ] any {} )
82+ catcher .Error ("Error marshalling bulk JSON" , err , nil )
8383 continue
8484 }
8585 log := string (str )
@@ -100,14 +100,14 @@ func HttpGitHubHandler(logOutputService *logservice.LogOutputService) gin.Handle
100100 var body interface {}
101101
102102 if err := c .ShouldBindJSON (& body ); err != nil {
103- catcher .Error ("Error binding github JSON" , err , map [ string ] any {} )
103+ catcher .Error ("Error binding github JSON" , err , nil )
104104 c .JSON (http .StatusBadRequest , gin.H {"error" : err .Error ()})
105105 return
106106 }
107107
108108 jsonBytes , err := json .Marshal (body )
109109 if err != nil {
110- catcher .Error ("Error marshalling github JSON" , err , map [ string ] any {} )
110+ catcher .Error ("Error marshalling github JSON" , err , nil )
111111 c .JSON (http .StatusInternalServerError , gin.H {"error" : "unable to convert JSON to string" })
112112 return
113113 }
0 commit comments