Skip to content

Commit

Permalink
move panic reporter and renderer to middleware package to fix import …
Browse files Browse the repository at this point in the history
…cycle
  • Loading branch information
behzadsh committed Dec 31, 2018
1 parent 9c4eb58 commit 55eb72f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion renderer.go → middleware/renderer.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package shark
package middleware

import (
"fmt"
Expand Down
11 changes: 1 addition & 10 deletions sentry.go → middleware/reporter.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package shark
package middleware

import (
"errors"
Expand Down Expand Up @@ -90,12 +90,3 @@ func getRequestLogs(context context.Context) string {
// the date should be logged by iris' Logger, so we skip them
return fmt.Sprintf("%v %s %s %s", status, path, method, ip)
}

func CaptureRoutineException(exceptions exceptions.AggregatedRoutineException) {
// packet := raven.NewPacket(
// errString,
// raven.NewException(errors.New(errString), raven.NewStacktrace(2, 3, nil)),
// )
//
// raven.Capture(packet, getCaptureTags(exception))
}

0 comments on commit 55eb72f

Please sign in to comment.