Skip to content

Commit

Permalink
Add host to constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee Elenbaas committed Nov 5, 2020
1 parent 67ea654 commit a32c4b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions logentriesrus.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package logentriesrus

import (
"fmt"
"github.com/bsphere/le_go"
"github.com/spalkltd/le_go"
"github.com/sirupsen/logrus"
"os"
)
Expand All @@ -17,8 +17,8 @@ type LogentriesrusHook struct {
Client *le_go.Logger
}

func NewLogentriesrusHook(t string) (*LogentriesrusHook, error) {
client, err := le_go.Connect(t)
func NewLogentriesrusHook(host string, token string) (*LogentriesrusHook, error) {
client, err := le_go.Connect(host, token)
le := LogentriesrusHook{
Client: client,
}
Expand Down

0 comments on commit a32c4b1

Please sign in to comment.