summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-06-07 16:00:34 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-06-07 21:04:11 +0900
commitd65df0b0452e2acb3234836507ba07107035d572 (patch)
treefd7457ceaed407e67e2e8a25f693a12c993efd31
parent452eb2a4f679b26a6aa71761160ba9ec43d97ffc (diff)
replace github.com/Sirupsen/logrus with github.com/sirupsen/logrus
The usage of "github.com/sirupsen/logrus" is recommended. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--api/grpc_server.go2
-rw-r--r--config/serve.go2
-rw-r--r--docs/sources/lib.md2
-rw-r--r--gobgpd/main.go2
-rw-r--r--gobgpd/util.go4
-rw-r--r--gobmpd/main.go2
-rw-r--r--server/bmp.go2
-rw-r--r--server/collector.go2
-rw-r--r--server/fsm.go2
-rw-r--r--server/fsm_test.go2
-rw-r--r--server/mrt.go2
-rw-r--r--server/peer.go2
-rw-r--r--server/rpki.go2
-rw-r--r--server/server.go2
-rw-r--r--server/server_test.go2
-rw-r--r--server/sockopt_openbsd.go2
-rw-r--r--server/zclient.go2
-rw-r--r--table/destination.go2
-rw-r--r--table/message.go2
-rw-r--r--table/path.go2
-rw-r--r--table/policy.go2
-rw-r--r--table/policy_test.go2
-rw-r--r--table/table.go2
-rw-r--r--table/table_manager.go2
-rw-r--r--table/table_manager_test.go2
-rw-r--r--zebra/zapi.go2
26 files changed, 27 insertions, 27 deletions
diff --git a/api/grpc_server.go b/api/grpc_server.go
index a6306580..e0a6686d 100644
--- a/api/grpc_server.go
+++ b/api/grpc_server.go
@@ -26,11 +26,11 @@ import (
"sync"
"time"
- log "github.com/Sirupsen/logrus"
"github.com/osrg/gobgp/config"
"github.com/osrg/gobgp/packet/bgp"
"github.com/osrg/gobgp/server"
"github.com/osrg/gobgp/table"
+ log "github.com/sirupsen/logrus"
"golang.org/x/net/context"
"google.golang.org/grpc"
)
diff --git a/config/serve.go b/config/serve.go
index ac893ea7..2df31558 100644
--- a/config/serve.go
+++ b/config/serve.go
@@ -1,7 +1,7 @@
package config
import (
- log "github.com/Sirupsen/logrus"
+ log "github.com/sirupsen/logrus"
"github.com/spf13/viper"
"os"
"os/signal"
diff --git a/docs/sources/lib.md b/docs/sources/lib.md
index e6bbd958..0e5b7e9f 100644
--- a/docs/sources/lib.md
+++ b/docs/sources/lib.md
@@ -12,7 +12,7 @@ package main
import (
"fmt"
- log "github.com/Sirupsen/logrus"
+ log "github.com/sirupsen/logrus"
api "github.com/osrg/gobgp/api"
"github.com/osrg/gobgp/config"
"github.com/osrg/gobgp/packet/bgp"
diff --git a/gobgpd/main.go b/gobgpd/main.go
index c80faa84..f1697715 100644
--- a/gobgpd/main.go
+++ b/gobgpd/main.go
@@ -24,7 +24,6 @@ import (
"runtime"
"syscall"
- log "github.com/Sirupsen/logrus"
"github.com/jessevdk/go-flags"
p "github.com/kr/pretty"
api "github.com/osrg/gobgp/api"
@@ -32,6 +31,7 @@ import (
"github.com/osrg/gobgp/packet/bgp"
"github.com/osrg/gobgp/server"
"github.com/osrg/gobgp/table"
+ log "github.com/sirupsen/logrus"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
)
diff --git a/gobgpd/util.go b/gobgpd/util.go
index 577363d3..25e9b888 100644
--- a/gobgpd/util.go
+++ b/gobgpd/util.go
@@ -26,8 +26,8 @@ import (
"strings"
"syscall"
- log "github.com/Sirupsen/logrus"
- "github.com/Sirupsen/logrus/hooks/syslog"
+ log "github.com/sirupsen/logrus"
+ "github.com/sirupsen/logrus/hooks/syslog"
)
func init() {
diff --git a/gobmpd/main.go b/gobmpd/main.go
index a91d3752..f875f847 100644
--- a/gobmpd/main.go
+++ b/gobmpd/main.go
@@ -19,8 +19,8 @@ import (
"bufio"
"encoding/json"
"fmt"
- log "github.com/Sirupsen/logrus"
"github.com/osrg/gobgp/packet/bmp"
+ log "github.com/sirupsen/logrus"
"net"
"os"
"strconv"
diff --git a/server/bmp.go b/server/bmp.go
index 2d0d5ec2..16db2c55 100644
--- a/server/bmp.go
+++ b/server/bmp.go
@@ -17,11 +17,11 @@ package server
import (
"fmt"
- log "github.com/Sirupsen/logrus"
"github.com/osrg/gobgp/config"
"github.com/osrg/gobgp/packet/bgp"
"github.com/osrg/gobgp/packet/bmp"
"github.com/osrg/gobgp/table"
+ log "github.com/sirupsen/logrus"
"net"
"strconv"
"time"
diff --git a/server/collector.go b/server/collector.go
index 59f945be..50fb72e9 100644
--- a/server/collector.go
+++ b/server/collector.go
@@ -17,10 +17,10 @@ package server
import (
"fmt"
- log "github.com/Sirupsen/logrus"
"github.com/influxdata/influxdb/client/v2"
"github.com/osrg/gobgp/packet/bgp"
"github.com/osrg/gobgp/table"
+ log "github.com/sirupsen/logrus"
"time"
)
diff --git a/server/fsm.go b/server/fsm.go
index d5d75d92..6107f749 100644
--- a/server/fsm.go
+++ b/server/fsm.go
@@ -17,11 +17,11 @@ package server
import (
"fmt"
- log "github.com/Sirupsen/logrus"
"github.com/eapache/channels"
"github.com/osrg/gobgp/config"
"github.com/osrg/gobgp/packet/bgp"
"github.com/osrg/gobgp/table"
+ log "github.com/sirupsen/logrus"
"gopkg.in/tomb.v2"
"io"
"math/rand"
diff --git a/server/fsm_test.go b/server/fsm_test.go
index e8ad2ad8..55318ac3 100644
--- a/server/fsm_test.go
+++ b/server/fsm_test.go
@@ -23,11 +23,11 @@ import (
"testing"
"time"
- log "github.com/Sirupsen/logrus"
"github.com/eapache/channels"
"github.com/osrg/gobgp/config"
"github.com/osrg/gobgp/packet/bgp"
"github.com/osrg/gobgp/table"
+ log "github.com/sirupsen/logrus"
"github.com/stretchr/testify/assert"
)
diff --git a/server/mrt.go b/server/mrt.go
index 6c66745d..f4a22658 100644
--- a/server/mrt.go
+++ b/server/mrt.go
@@ -21,11 +21,11 @@ import (
"os"
"time"
- log "github.com/Sirupsen/logrus"
"github.com/osrg/gobgp/config"
"github.com/osrg/gobgp/packet/bgp"
"github.com/osrg/gobgp/packet/mrt"
"github.com/osrg/gobgp/table"
+ log "github.com/sirupsen/logrus"
)
const (
diff --git a/server/peer.go b/server/peer.go
index a629a16d..8adc6a22 100644
--- a/server/peer.go
+++ b/server/peer.go
@@ -17,11 +17,11 @@ package server
import (
"fmt"
- log "github.com/Sirupsen/logrus"
"github.com/eapache/channels"
"github.com/osrg/gobgp/config"
"github.com/osrg/gobgp/packet/bgp"
"github.com/osrg/gobgp/table"
+ log "github.com/sirupsen/logrus"
"net"
"time"
)
diff --git a/server/rpki.go b/server/rpki.go
index 5c8c3db9..a93decb8 100644
--- a/server/rpki.go
+++ b/server/rpki.go
@@ -24,12 +24,12 @@ import (
"strconv"
"time"
- log "github.com/Sirupsen/logrus"
"github.com/armon/go-radix"
"github.com/osrg/gobgp/config"
"github.com/osrg/gobgp/packet/bgp"
"github.com/osrg/gobgp/packet/rtr"
"github.com/osrg/gobgp/table"
+ log "github.com/sirupsen/logrus"
"golang.org/x/net/context"
)
diff --git a/server/server.go b/server/server.go
index 48af87da..ac2f20ef 100644
--- a/server/server.go
+++ b/server/server.go
@@ -23,11 +23,11 @@ import (
"strconv"
"time"
- log "github.com/Sirupsen/logrus"
"github.com/eapache/channels"
"github.com/osrg/gobgp/config"
"github.com/osrg/gobgp/packet/bgp"
"github.com/osrg/gobgp/table"
+ log "github.com/sirupsen/logrus"
)
type TCPListener struct {
diff --git a/server/server_test.go b/server/server_test.go
index 98564b9f..887f5ec4 100644
--- a/server/server_test.go
+++ b/server/server_test.go
@@ -16,10 +16,10 @@
package server
import (
- log "github.com/Sirupsen/logrus"
"github.com/osrg/gobgp/config"
"github.com/osrg/gobgp/packet/bgp"
"github.com/osrg/gobgp/table"
+ log "github.com/sirupsen/logrus"
"github.com/stretchr/testify/assert"
"net"
"runtime"
diff --git a/server/sockopt_openbsd.go b/server/sockopt_openbsd.go
index 16ed2c3d..90eb7490 100644
--- a/server/sockopt_openbsd.go
+++ b/server/sockopt_openbsd.go
@@ -19,7 +19,7 @@ package server
import (
"encoding/binary"
"fmt"
- log "github.com/Sirupsen/logrus"
+ log "github.com/sirupsen/logrus"
"net"
"os"
"strings"
diff --git a/server/zclient.go b/server/zclient.go
index d432b96d..85d238c8 100644
--- a/server/zclient.go
+++ b/server/zclient.go
@@ -17,10 +17,10 @@ package server
import (
"fmt"
- log "github.com/Sirupsen/logrus"
"github.com/osrg/gobgp/packet/bgp"
"github.com/osrg/gobgp/table"
"github.com/osrg/gobgp/zebra"
+ log "github.com/sirupsen/logrus"
"net"
"strconv"
"strings"
diff --git a/table/destination.go b/table/destination.go
index 9664fdbc..21857e44 100644
--- a/table/destination.go
+++ b/table/destination.go
@@ -23,9 +23,9 @@ import (
"net"
"sort"
- log "github.com/Sirupsen/logrus"
"github.com/osrg/gobgp/config"
"github.com/osrg/gobgp/packet/bgp"
+ log "github.com/sirupsen/logrus"
)
var SelectionOptions config.RouteSelectionOptionsConfig
diff --git a/table/message.go b/table/message.go
index af4affa6..30a75d24 100644
--- a/table/message.go
+++ b/table/message.go
@@ -17,8 +17,8 @@ package table
import (
"bytes"
- log "github.com/Sirupsen/logrus"
"github.com/osrg/gobgp/packet/bgp"
+ log "github.com/sirupsen/logrus"
"hash/fnv"
"reflect"
)
diff --git a/table/path.go b/table/path.go
index b2984fe4..bca2fe94 100644
--- a/table/path.go
+++ b/table/path.go
@@ -24,10 +24,10 @@ import (
"sort"
"time"
- log "github.com/Sirupsen/logrus"
"github.com/osrg/gobgp/config"
"github.com/osrg/gobgp/packet/bgp"
"github.com/satori/go.uuid"
+ log "github.com/sirupsen/logrus"
)
const (
diff --git a/table/policy.go b/table/policy.go
index 2cca91a9..a73fa57a 100644
--- a/table/policy.go
+++ b/table/policy.go
@@ -26,10 +26,10 @@ import (
"strings"
"sync"
- log "github.com/Sirupsen/logrus"
"github.com/armon/go-radix"
"github.com/osrg/gobgp/config"
"github.com/osrg/gobgp/packet/bgp"
+ log "github.com/sirupsen/logrus"
)
type PolicyOptions struct {
diff --git a/table/policy_test.go b/table/policy_test.go
index a846dabe..c55eb1c8 100644
--- a/table/policy_test.go
+++ b/table/policy_test.go
@@ -24,9 +24,9 @@ import (
"testing"
"time"
- log "github.com/Sirupsen/logrus"
"github.com/osrg/gobgp/config"
"github.com/osrg/gobgp/packet/bgp"
+ log "github.com/sirupsen/logrus"
"github.com/stretchr/testify/assert"
)
diff --git a/table/table.go b/table/table.go
index 6e90faf7..c1ed3a29 100644
--- a/table/table.go
+++ b/table/table.go
@@ -20,9 +20,9 @@ import (
"net"
"sort"
- log "github.com/Sirupsen/logrus"
"github.com/armon/go-radix"
"github.com/osrg/gobgp/packet/bgp"
+ log "github.com/sirupsen/logrus"
)
type LookupOption uint8
diff --git a/table/table_manager.go b/table/table_manager.go
index 3060dda0..e41c2798 100644
--- a/table/table_manager.go
+++ b/table/table_manager.go
@@ -18,8 +18,8 @@ package table
import (
"bytes"
"fmt"
- log "github.com/Sirupsen/logrus"
"github.com/osrg/gobgp/packet/bgp"
+ log "github.com/sirupsen/logrus"
"net"
"time"
)
diff --git a/table/table_manager_test.go b/table/table_manager_test.go
index 21d15026..2a8ed2f6 100644
--- a/table/table_manager_test.go
+++ b/table/table_manager_test.go
@@ -17,8 +17,8 @@ package table
import (
_ "fmt"
- log "github.com/Sirupsen/logrus"
"github.com/osrg/gobgp/packet/bgp"
+ log "github.com/sirupsen/logrus"
"github.com/stretchr/testify/assert"
"net"
"os"
diff --git a/zebra/zapi.go b/zebra/zapi.go
index 0c131f7f..01e8d2ff 100644
--- a/zebra/zapi.go
+++ b/zebra/zapi.go
@@ -23,7 +23,7 @@ import (
"strings"
"syscall"
- log "github.com/Sirupsen/logrus"
+ log "github.com/sirupsen/logrus"
)
const (