Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 61ee5276 authored by Fahim Salam Chowdhury's avatar Fahim Salam Chowdhury 👽
Browse files

rnd: test out sentry on staging env

parent 1ea4d182
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -123,6 +123,7 @@ func RecoveryWithSentry() gin.HandlerFunc {
// ----------------------
func (h *UploadHandler) AuthMiddlewareV2() gin.HandlerFunc {
	return func(c *gin.Context) {
		panic("dummy panic")
		reqID := fmt.Sprintf("req_%d", time.Now().UnixNano())
		baseLog := fmt.Sprintf("[%s] [POST /api/v2/upload]", reqID)
		log.Info().Msgf("%s New incoming upload, check authentication", baseLog)
@@ -191,6 +192,7 @@ func extractUsernameFromMail(mail string) string {

func (h *UploadHandler) AuthMiddlewareV1() gin.HandlerFunc {
	return func(c *gin.Context) {
		panic("dummy panic from v1")
		reqID := fmt.Sprintf("req_%d", time.Now().UnixNano())
		baseLog := fmt.Sprintf("[%s] [POST /upload]", reqID)
		log.Info().Msgf("%s New incoming upload, check authentication", baseLog)