Skip to content

Commit 1b18f71

Browse files
committed
bugfix
1 parent 0055b07 commit 1b18f71

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

raygun.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
)
1010

1111
type raygunHook struct {
12-
client *goraygun.Client
12+
Client *goraygun.Client
1313
}
1414

1515
func NewHook(Endpoint string, ApiKey string, Enabled bool) *raygunHook {
@@ -23,7 +23,7 @@ func NewHook(Endpoint string, ApiKey string, Enabled bool) *raygunHook {
2323

2424
func (hook *raygunHook) Fire(logEntry *logrus.Entry) error {
2525
// Start with a copy of the default entry
26-
raygunEntry := hook.client.Entry
26+
raygunEntry := hook.Client.Entry
2727

2828
if request, ok := logEntry.Data["request"]; ok {
2929
raygunEntry.Details.Request.Populate(*(request.(*http.Request)))
@@ -36,7 +36,7 @@ func (hook *raygunHook) Fire(logEntry *logrus.Entry) error {
3636
reportErr = errors.New(logEntry.Message)
3737
}
3838

39-
hook.client.Report(reportErr, raygunEntry)
39+
hook.Client.Report(reportErr, raygunEntry)
4040

4141
return nil
4242
}

0 commit comments

Comments
 (0)