Skip to content

Commit 2bb1630

Browse files
author
Mikhail Podtserkovskiy
committed
fix ligrus case
1 parent 47c1847 commit 2bb1630

Some content is hidden

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

56 files changed

+983
-527
lines changed

config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package config
33
import (
44
"encoding/json"
55
"errors"
6-
log "github.com/Sirupsen/logrus"
6+
log "github.com/sirupsen/logrus"
77
"github.com/qa-dev/jsonwire-grid/pool/metrics"
88
"os"
99
)

handlers/apiProxy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"net/http"
55
"net/url"
66

7-
log "github.com/Sirupsen/logrus"
7+
log "github.com/sirupsen/logrus"
88
"github.com/qa-dev/jsonwire-grid/pool"
99
)
1010

handlers/createSession.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"encoding/json"
66
"errors"
77
"fmt"
8-
log "github.com/Sirupsen/logrus"
8+
log "github.com/sirupsen/logrus"
99
"github.com/qa-dev/jsonwire-grid/jsonwire"
1010
"github.com/qa-dev/jsonwire-grid/pool"
1111
"github.com/qa-dev/jsonwire-grid/pool/capabilities"

handlers/registerNode.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"net/http"
77
"strconv"
88

9-
log "github.com/Sirupsen/logrus"
9+
log "github.com/sirupsen/logrus"
1010
"github.com/qa-dev/jsonwire-grid/jsonwire"
1111
"github.com/qa-dev/jsonwire-grid/pool"
1212
"github.com/qa-dev/jsonwire-grid/pool/capabilities"

handlers/useSession.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"net/url"
77
"regexp"
88

9-
log "github.com/Sirupsen/logrus"
9+
log "github.com/sirupsen/logrus"
1010
"github.com/qa-dev/jsonwire-grid/pool"
1111
)
1212

logger/logger.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package logger
22

33
import (
4-
"github.com/Sirupsen/logrus"
4+
"github.com/sirupsen/logrus"
55

66
"fmt"
77
"github.com/qa-dev/jsonwire-grid/config"

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package main
33
import (
44
"context"
55
"fmt"
6-
log "github.com/Sirupsen/logrus"
6+
log "github.com/sirupsen/logrus"
77
"github.com/qa-dev/jsonwire-grid/config"
88
"github.com/qa-dev/jsonwire-grid/handlers"
99
"github.com/qa-dev/jsonwire-grid/logger"

middleware/statsd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"strings"
66

77
"fmt"
8-
"github.com/Sirupsen/logrus"
8+
"github.com/sirupsen/logrus"
99
"gopkg.in/alexcesaro/statsd.v2"
1010
"regexp"
1111
)

middleware/wrap.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package middleware
33
import (
44
"net/http"
55
"runtime/debug"
6-
"github.com/Sirupsen/logrus"
6+
"github.com/sirupsen/logrus"
77
)
88

99
type Wrap struct {

middleware/wrap_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package middleware
22

33
import (
44
"testing"
5-
"github.com/Sirupsen/logrus"
5+
"github.com/sirupsen/logrus"
66
"net/http"
77
"github.com/stretchr/testify/assert"
88
)

pool/metrics/metrics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package metrics
22

33
import (
4-
log "github.com/Sirupsen/logrus"
4+
log "github.com/sirupsen/logrus"
55
"github.com/qa-dev/jsonwire-grid/pool"
66
"github.com/qa-dev/jsonwire-grid/pool/capabilities"
77
"gopkg.in/alexcesaro/statsd.v2"

pool/pool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55

66
"errors"
77
"fmt"
8-
log "github.com/Sirupsen/logrus"
8+
log "github.com/sirupsen/logrus"
99
"github.com/qa-dev/jsonwire-grid/pool/capabilities"
1010
)
1111

pool/strategy/kubernetes/factory.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"github.com/qa-dev/jsonwire-grid/pool/capabilities"
99
"k8s.io/client-go/kubernetes"
1010
"k8s.io/client-go/rest"
11-
log "github.com/Sirupsen/logrus"
11+
log "github.com/sirupsen/logrus"
1212
)
1313

1414
type StrategyFactory struct {

pool/strategy/kubernetes/provider.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package kubernetes
22

33
import (
44
"errors"
5-
log "github.com/Sirupsen/logrus"
5+
log "github.com/sirupsen/logrus"
66
"github.com/qa-dev/jsonwire-grid/jsonwire"
77
"k8s.io/client-go/kubernetes"
88
apiV1 "k8s.io/client-go/pkg/api/v1"

pool/strategy/persistent/strategy.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package persistent
22

33
import (
44
"errors"
5-
log "github.com/Sirupsen/logrus"
5+
log "github.com/sirupsen/logrus"
66
"github.com/qa-dev/jsonwire-grid/jsonwire"
77
"github.com/qa-dev/jsonwire-grid/pool"
88
"github.com/qa-dev/jsonwire-grid/pool/capabilities"
@@ -45,10 +45,10 @@ func (s *Strategy) Reserve(desiredCaps capabilities.Capabilities) (pool.Node, er
4545
client := s.clientFactory.Create(node.Address)
4646
message, err := client.Health()
4747
if err != nil {
48-
log.Infof("Remove unavailable node [%s], %s", node, err)
48+
log.Infof("Remove unavailable node [%s], %s", &node, err)
4949
err = s.storage.Remove(node)
5050
if err != nil {
51-
log.Errorf("Remove unavailable node [%s], %s", node, err)
51+
log.Errorf("Remove unavailable node [%s], %s", &node, err)
5252
}
5353
continue
5454
}
@@ -62,7 +62,7 @@ func (s *Strategy) Reserve(desiredCaps capabilities.Capabilities) (pool.Node, er
6262
//todo: посылать в мониторинг событие, если вернулся не 0
6363
_, err = seleniumNode.removeAllSessions()
6464
if err != nil {
65-
log.Warningf("remove all existing sessions from node [%v], [%v]", node, err)
65+
log.Warningf("remove all existing sessions from node [%s], [%v]", &node, err)
6666
continue
6767
}
6868

proxy/transport.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"io/ioutil"
88
"net/http"
99

10-
log "github.com/Sirupsen/logrus"
10+
log "github.com/sirupsen/logrus"
1111

1212
"errors"
1313
"github.com/qa-dev/jsonwire-grid/jsonwire"

storage/mysql/factory.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package mysql
22

33
import (
44
"errors"
5-
log "github.com/Sirupsen/logrus"
5+
log "github.com/sirupsen/logrus"
66
_ "github.com/go-sql-driver/mysql"
77
"github.com/jmoiron/sqlx"
88
"github.com/qa-dev/jsonwire-grid/config"

testing/webdriver-mock-creator/webdriver-mock-creator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package main
33
import (
44
"flag"
55
"fmt"
6-
log "github.com/Sirupsen/logrus"
6+
log "github.com/sirupsen/logrus"
77
"os"
88
"os/exec"
99
"os/signal"

testing/webdriver-node-mock/handlers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"encoding/json"
55
"errors"
66
"fmt"
7-
log "github.com/Sirupsen/logrus"
7+
log "github.com/sirupsen/logrus"
88
"github.com/qa-dev/jsonwire-grid/jsonwire"
99
"github.com/satori/go.uuid"
1010
"math/rand"

testing/webdriver-node-mock/webdriver-node-mock.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"encoding/json"
66
"flag"
77
"fmt"
8-
log "github.com/Sirupsen/logrus"
8+
log "github.com/sirupsen/logrus"
99
"github.com/qa-dev/jsonwire-grid/jsonwire"
1010
"io/ioutil"
1111
"math/rand"

utils/metrics/init.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"strings"
66

7-
log "github.com/Sirupsen/logrus"
7+
log "github.com/sirupsen/logrus"
88
"gopkg.in/alexcesaro/statsd.v2"
99
)
1010

vendor/github.com/Sirupsen/logrus/terminal_appengine.go

Lines changed: 0 additions & 10 deletions
This file was deleted.

vendor/github.com/Sirupsen/logrus/terminal_bsd.go

Lines changed: 0 additions & 10 deletions
This file was deleted.

vendor/github.com/Sirupsen/logrus/terminal_linux.go

Lines changed: 0 additions & 14 deletions
This file was deleted.

vendor/github.com/Sirupsen/logrus/terminal_notwindows.go

Lines changed: 0 additions & 28 deletions
This file was deleted.

vendor/github.com/Sirupsen/logrus/terminal_solaris.go

Lines changed: 0 additions & 21 deletions
This file was deleted.

vendor/github.com/Sirupsen/logrus/terminal_windows.go

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)