Skip to content

Commit d075d26

Browse files
committed
Vendored all of logrus
1 parent 232ddd8 commit d075d26

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+53
-52
lines changed

api.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
"github.com/TykTechnologies/tykcommon"
1818
"github.com/gorilla/context"
1919
"github.com/nu7hatch/gouuid"
20-
"github.com/sirupsen/logrus"
20+
"github.com/TykTechnologies/logrus"
2121
"golang.org/x/crypto/bcrypt"
2222
)
2323

api_definition_manager.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
textTemplate "text/template"
1515
"time"
1616

17-
"github.com/sirupsen/logrus"
17+
"github.com/TykTechnologies/logrus"
1818
"github.com/TykTechnologies/tykcommon"
1919
"github.com/gorilla/context"
2020
"github.com/rubyist/circuitbreaker"

api_loader.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"sync"
1010
"time"
1111

12-
"github.com/sirupsen/logrus"
12+
"github.com/TykTechnologies/logrus"
1313
"github.com/TykTechnologies/tyk/coprocess"
1414
"github.com/TykTechnologies/tykcommon"
1515
"github.com/gorilla/mux"

auth_manager.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package main
33
import (
44
"encoding/base64"
55
"encoding/json"
6-
"github.com/sirupsen/logrus"
6+
"github.com/TykTechnologies/logrus"
77
"github.com/nu7hatch/gouuid"
88
"strings"
99
"time"

coprocess.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
package main
77

88
import (
9-
"github.com/sirupsen/logrus"
9+
"github.com/TykTechnologies/logrus"
1010
"github.com/gorilla/context"
1111
"github.com/mitchellh/mapstructure"
1212

coprocess_api.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ package main
1818
import "C"
1919

2020
import (
21-
"github.com/sirupsen/logrus"
21+
"github.com/TykTechnologies/logrus"
2222
"github.com/TykTechnologies/tykcommon"
2323
)
2424

coprocess_bundle.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package main
22

33
import (
4-
"github.com/sirupsen/logrus"
4+
"github.com/TykTechnologies/logrus"
55
"github.com/TykTechnologies/goverify"
66
"github.com/TykTechnologies/tykcommon"
77

coprocess_dummy.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
package main
44

55
import (
6-
"github.com/sirupsen/logrus"
6+
"github.com/TykTechnologies/logrus"
77

88
"github.com/TykTechnologies/tyk/coprocess"
99
"github.com/TykTechnologies/tykcommon"

coprocess_grpc.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"time"
1010
"errors"
1111

12-
"github.com/sirupsen/logrus"
12+
"github.com/TykTechnologies/logrus"
1313
"github.com/TykTechnologies/tyk/coprocess"
1414
"github.com/TykTechnologies/tykcommon"
1515
"golang.org/x/net/context"

coprocess_id_extractor.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
package main
44

55
import (
6-
"github.com/sirupsen/logrus"
6+
"github.com/TykTechnologies/logrus"
77
"github.com/TykTechnologies/tykcommon"
88
"github.com/gorilla/context"
99
"github.com/mitchellh/mapstructure"

coprocess_lua.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ import (
7777
"path/filepath"
7878
"unsafe"
7979

80-
"github.com/sirupsen/logrus"
80+
"github.com/TykTechnologies/logrus"
8181
"github.com/TykTechnologies/tyk/coprocess"
8282
"github.com/TykTechnologies/tykcommon"
8383
)

coprocess_python.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ import (
174174
"strings"
175175
"unsafe"
176176

177-
"github.com/sirupsen/logrus"
177+
"github.com/TykTechnologies/logrus"
178178
"github.com/TykTechnologies/tyk/coprocess"
179179
"github.com/TykTechnologies/tykcommon"
180180
)

dashboard_register.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"net/http"
88
"time"
99

10-
"github.com/sirupsen/logrus"
10+
"github.com/TykTechnologies/logrus"
1111
)
1212

1313
type NodeResponseOK struct {

distributed_rate_limiter.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package main
22

33
import (
44
"encoding/json"
5-
"github.com/sirupsen/logrus"
5+
"github.com/TykTechnologies/logrus"
66
"github.com/TykTechnologies/drl"
77
"time"
88
)

event_handler_webhooks.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@ import (
55
"crypto/md5"
66
"encoding/hex"
77
"encoding/json"
8-
"github.com/sirupsen/logrus"
9-
"github.com/TykTechnologies/tykcommon"
108
"html/template"
119
"io"
1210
"io/ioutil"
1311
"net/http"
1412
"net/url"
1513
"path"
1614
"strings"
15+
16+
"github.com/TykTechnologies/logrus"
17+
"github.com/TykTechnologies/tykcommon"
1718
)
1819

1920
type WebHookRequestMethod string

handler_error.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"bytes"
55
b64 "encoding/base64"
66
"fmt"
7-
"github.com/sirupsen/logrus"
7+
"github.com/TykTechnologies/logrus"
88
"github.com/gorilla/context"
99
"html/template"
1010
"net"

handler_websocket.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package main
33
import (
44
"crypto/tls"
55
"errors"
6-
"github.com/sirupsen/logrus"
6+
"github.com/TykTechnologies/logrus"
77
"io"
88
"net"
99
"net/http"

host_checker_manager.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
b64 "encoding/base64"
55
"encoding/json"
66
"errors"
7-
"github.com/sirupsen/logrus"
7+
"github.com/TykTechnologies/logrus"
88
"github.com/lonelycode/go-uuid/uuid"
99
"github.com/TykTechnologies/tykcommon"
1010
"gopkg.in/vmihailenco/msgpack.v2"

le_helpers.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package main
33
import (
44
"rsc.io/letsencrypt"
55
"encoding/json"
6-
"github.com/sirupsen/logrus"
6+
"github.com/TykTechnologies/logrus"
77
)
88

99
const LEKeyPrefix string = "le_ssl:"

main.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ import (
1616
"strings"
1717
"time"
1818

19-
"github.com/sirupsen/logrus"
20-
logrus_syslog "github.com/sirupsen/logrus/hooks/syslog"
2119
"github.com/TykTechnologies/goagain"
20+
"github.com/TykTechnologies/logrus"
21+
"github.com/TykTechnologies/logrus-logstash-hook"
22+
logrus_syslog "github.com/TykTechnologies/logrus/hooks/syslog"
23+
"github.com/TykTechnologies/logrus_sentry"
2224
"github.com/TykTechnologies/tykcommon"
2325
logger "github.com/TykTechnologies/tykcommon-logger"
24-
"github.com/bshuster-repo/logrus-logstash-hook"
2526
"github.com/docopt/docopt.go"
26-
"github.com/evalphobia/logrus_sentry"
2727
"github.com/facebookgo/pidfile"
2828
"github.com/gorilla/mux"
2929
"github.com/justinas/alice"

middleware_HMAC.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"crypto/sha1"
66
"encoding/base64"
77
"errors"
8-
"github.com/sirupsen/logrus"
8+
"github.com/TykTechnologies/logrus"
99
"github.com/TykTechnologies/tykcommon"
1010
"github.com/gorilla/context"
1111
"math"

middleware_access_rights.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import "net/http"
44

55
import (
66
"errors"
7-
"github.com/sirupsen/logrus"
7+
"github.com/TykTechnologies/logrus"
88
"github.com/gorilla/context"
99
)
1010

middleware_auth_key.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import "net/http"
55
import (
66
"bytes"
77
"errors"
8-
"github.com/sirupsen/logrus"
8+
"github.com/TykTechnologies/logrus"
99
"github.com/TykTechnologies/tykcommon"
1010
"github.com/gorilla/context"
1111
"io"

middleware_basic_auth_check.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import "net/http"
55
import (
66
"encoding/base64"
77
"errors"
8-
"github.com/sirupsen/logrus"
8+
"github.com/TykTechnologies/logrus"
99
"github.com/TykTechnologies/tykcommon"
1010
"github.com/gorilla/context"
1111
"golang.org/x/crypto/bcrypt"

middleware_granular_access.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package main
22

33
import (
44
"errors"
5-
"github.com/sirupsen/logrus"
5+
"github.com/TykTechnologies/logrus"
66
"github.com/gorilla/context"
77
"net/http"
88
"regexp"

middleware_jwt.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"strings"
1414
"time"
1515

16-
"github.com/sirupsen/logrus"
16+
"github.com/TykTechnologies/logrus"
1717
"github.com/TykTechnologies/tykcommon"
1818
"github.com/dgrijalva/jwt-go"
1919
"github.com/gorilla/context"

middleware_key_expired_check.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import "net/http"
44

55
import (
66
"errors"
7-
"github.com/sirupsen/logrus"
7+
"github.com/TykTechnologies/logrus"
88
"github.com/gorilla/context"
99
)
1010

middleware_oauth2_key_exists.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import "net/http"
44

55
import (
66
"errors"
7-
"github.com/sirupsen/logrus"
7+
"github.com/TykTechnologies/logrus"
88
"github.com/TykTechnologies/tykcommon"
99
"github.com/gorilla/context"
1010
"strings"

middleware_openid.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
b64 "encoding/base64"
88
"errors"
99
"fmt"
10-
"github.com/sirupsen/logrus"
10+
"github.com/TykTechnologies/logrus"
1111
"github.com/TykTechnologies/openid2go/openid"
1212
"github.com/TykTechnologies/tykcommon"
1313
"github.com/dgrijalva/jwt-go"

middleware_organisation_activity.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88

99
import (
1010
"errors"
11-
"github.com/sirupsen/logrus"
11+
"github.com/TykTechnologies/logrus"
1212
)
1313

1414
var orgChanMap = make(map[string]chan bool)

middleware_rate_limiting.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import "net/http"
44

55
import (
66
"errors"
7-
"github.com/sirupsen/logrus"
7+
"github.com/TykTechnologies/logrus"
88
"github.com/gorilla/context"
99
)
1010

middleware_request_size_limit.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"net/http"
66
"strconv"
77

8-
"github.com/sirupsen/logrus"
8+
"github.com/TykTechnologies/logrus"
99
"github.com/TykTechnologies/tykcommon"
1010
)
1111

middleware_transform.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"io/ioutil"
88
"net/http"
99

10-
"github.com/sirupsen/logrus"
10+
"github.com/TykTechnologies/logrus"
1111
"github.com/TykTechnologies/tykcommon"
1212
"github.com/clbanning/mxj"
1313
"github.com/gorilla/context"

multi_target_proxy_handler.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package main
22

33
import (
44
"errors"
5-
"github.com/sirupsen/logrus"
5+
"github.com/TykTechnologies/logrus"
66
"io"
77
"net/http"
88
"net/url"

plugins.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"encoding/json"
66
"errors"
77
"fmt"
8-
"github.com/sirupsen/logrus"
8+
"github.com/TykTechnologies/logrus"
99
"github.com/gorilla/context"
1010
"github.com/mitchellh/mapstructure"
1111
"github.com/robertkrimen/otto"

policy.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"net/http"
77
"time"
88

9-
"github.com/sirupsen/logrus"
9+
"github.com/TykTechnologies/logrus"
1010
"gopkg.in/mgo.v2/bson"
1111
)
1212

redis_logrus_hook.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package main
22

33
import (
44
"fmt"
5-
"github.com/sirupsen/logrus"
5+
"github.com/TykTechnologies/logrus"
66
"time"
77
)
88

redis_signal_dash_zeroconf.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package main
22

33
import (
44
"encoding/json"
5-
"github.com/sirupsen/logrus"
5+
"github.com/TykTechnologies/logrus"
66
"strings"
77
"strconv"
88
)

redis_signal_handle_config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package main
33
import (
44
"encoding/json"
55
"fmt"
6-
"github.com/sirupsen/logrus"
6+
"github.com/TykTechnologies/logrus"
77
"io/ioutil"
88
"time"
99
)

redis_signal_handle_config_request.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package main
33
import (
44
"encoding/json"
55
"fmt"
6-
"github.com/sirupsen/logrus"
6+
"github.com/TykTechnologies/logrus"
77
"io/ioutil"
88
"time"
99
)

redis_signal_handle_reload.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package main
22

33
import (
4-
"github.com/sirupsen/logrus"
4+
"github.com/TykTechnologies/logrus"
55
)
66

77
func HandleReloadMsg() {

redis_signal_outbound.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package main
22

33
import (
44
"encoding/json"
5-
"github.com/sirupsen/logrus"
5+
"github.com/TykTechnologies/logrus"
66
"github.com/garyburd/redigo/redis"
77
"time"
88
)

0 commit comments

Comments
 (0)