Skip to content

Commit

Permalink
chore: update dependency sirupsen/logrus@v1.0.6
Browse files Browse the repository at this point in the history
The logrus need indirect dependencies as follows:

-
`golang.org/x/crypto/ssh/terminal`
- `golang.org/x/sys/unix`

So,
resolve them.

The next to update `github.com/masato25/yaag/gin` due to
the use `sirupsen/logrus`.

Why is `v1.0.6`? Just for compatibility with
go1.6.

Closes open-falcon#818
  • Loading branch information
shaneing committed Oct 28, 2019
1 parent fa81b78 commit 17dce73
Show file tree
Hide file tree
Showing 288 changed files with 64,802 additions and 27,653 deletions.
2 changes: 1 addition & 1 deletion modules/agent/funcs/dfstat.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ package funcs

import (
"fmt"
log "github.com/Sirupsen/logrus"
"github.com/open-falcon/falcon-plus/common/model"
"github.com/open-falcon/falcon-plus/modules/agent/g"
log "github.com/sirupsen/logrus"
"github.com/toolkits/nux"
)

Expand Down
2 changes: 1 addition & 1 deletion modules/agent/g/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

package g

import log "github.com/Sirupsen/logrus"
import log "github.com/sirupsen/logrus"

func InitLog(level string) (err error) {
switch level {
Expand Down
2 changes: 1 addition & 1 deletion modules/alarm/api/portal.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ package api
import (
"encoding/json"
"fmt"
log "github.com/Sirupsen/logrus"
"github.com/open-falcon/falcon-plus/modules/alarm/g"
log "github.com/sirupsen/logrus"
"github.com/toolkits/net/httplib"
"sync"
"time"
Expand Down
2 changes: 1 addition & 1 deletion modules/alarm/api/uic.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ package api
import (
"encoding/json"
"fmt"
log "github.com/Sirupsen/logrus"
"github.com/open-falcon/falcon-plus/modules/alarm/g"
"github.com/open-falcon/falcon-plus/modules/api/app/model/uic"
log "github.com/sirupsen/logrus"
"github.com/toolkits/container/set"
"github.com/toolkits/net/httplib"
"strings"
Expand Down
2 changes: 1 addition & 1 deletion modules/alarm/api/uic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ package api
import (
"testing"

log "github.com/Sirupsen/logrus"
"github.com/open-falcon/falcon-plus/modules/alarm/g"
log "github.com/sirupsen/logrus"
. "github.com/smartystreets/goconvey/convey"
)

Expand Down
2 changes: 1 addition & 1 deletion modules/alarm/cron/callback.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"strings"
"time"

log "github.com/Sirupsen/logrus"
log "github.com/sirupsen/logrus"

"github.com/open-falcon/falcon-plus/common/model"
"github.com/open-falcon/falcon-plus/common/utils"
Expand Down
2 changes: 1 addition & 1 deletion modules/alarm/cron/combiner.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ package cron
import (
"encoding/json"
"fmt"
log "github.com/Sirupsen/logrus"
"github.com/garyburd/redigo/redis"
"github.com/open-falcon/falcon-plus/modules/alarm/api"
"github.com/open-falcon/falcon-plus/modules/alarm/g"
"github.com/open-falcon/falcon-plus/modules/alarm/redi"
log "github.com/sirupsen/logrus"
"strings"
"time"
)
Expand Down
2 changes: 1 addition & 1 deletion modules/alarm/cron/event_consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ package cron

import (
"encoding/json"
log "github.com/Sirupsen/logrus"
log "github.com/sirupsen/logrus"

cmodel "github.com/open-falcon/falcon-plus/common/model"
"github.com/open-falcon/falcon-plus/modules/alarm/api"
Expand Down
2 changes: 1 addition & 1 deletion modules/alarm/cron/event_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ import (
"encoding/json"
"time"

log "github.com/Sirupsen/logrus"
"github.com/garyburd/redigo/redis"
cmodel "github.com/open-falcon/falcon-plus/common/model"
"github.com/open-falcon/falcon-plus/modules/alarm/g"
eventmodel "github.com/open-falcon/falcon-plus/modules/alarm/model/event"
log "github.com/sirupsen/logrus"
)

func ReadHighEvent() {
Expand Down
2 changes: 1 addition & 1 deletion modules/alarm/cron/im_sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
package cron

import (
log "github.com/Sirupsen/logrus"
"github.com/open-falcon/falcon-plus/modules/alarm/g"
"github.com/open-falcon/falcon-plus/modules/alarm/model"
"github.com/open-falcon/falcon-plus/modules/alarm/redi"
log "github.com/sirupsen/logrus"
"github.com/toolkits/net/httplib"
"time"
)
Expand Down
2 changes: 1 addition & 1 deletion modules/alarm/cron/mail_sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
package cron

import (
log "github.com/Sirupsen/logrus"
"github.com/open-falcon/falcon-plus/modules/alarm/g"
"github.com/open-falcon/falcon-plus/modules/alarm/model"
"github.com/open-falcon/falcon-plus/modules/alarm/redi"
log "github.com/sirupsen/logrus"
"github.com/toolkits/net/httplib"
"time"
)
Expand Down
2 changes: 1 addition & 1 deletion modules/alarm/cron/sms_sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
package cron

import (
log "github.com/Sirupsen/logrus"
"github.com/open-falcon/falcon-plus/modules/alarm/g"
"github.com/open-falcon/falcon-plus/modules/alarm/model"
"github.com/open-falcon/falcon-plus/modules/alarm/redi"
log "github.com/sirupsen/logrus"
"github.com/toolkits/net/httplib"
"strings"
"time"
Expand Down
2 changes: 1 addition & 1 deletion modules/alarm/g/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

package g

import log "github.com/Sirupsen/logrus"
import log "github.com/sirupsen/logrus"

func InitLog(level string) (err error) {
switch level {
Expand Down
2 changes: 1 addition & 1 deletion modules/alarm/model/event/event_operation.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ import (

"database/sql"

log "github.com/Sirupsen/logrus"
"github.com/astaxie/beego/orm"
coommonModel "github.com/open-falcon/falcon-plus/common/model"
"github.com/open-falcon/falcon-plus/common/utils"
log "github.com/sirupsen/logrus"
)

const timeLayout = "2006-01-02 15:04:05"
Expand Down
2 changes: 1 addition & 1 deletion modules/alarm/redi/msg_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ package redi

import (
"encoding/json"
log "github.com/Sirupsen/logrus"
"github.com/garyburd/redigo/redis"
"github.com/open-falcon/falcon-plus/modules/alarm/g"
"github.com/open-falcon/falcon-plus/modules/alarm/model"
log "github.com/sirupsen/logrus"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion modules/alarm/redi/msg_writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ package redi

import (
"encoding/json"
log "github.com/Sirupsen/logrus"
log "github.com/sirupsen/logrus"
"strings"

"github.com/open-falcon/falcon-plus/modules/alarm/g"
Expand Down
2 changes: 1 addition & 1 deletion modules/api/app/controller/graph/grafana_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ import (
"regexp"
"strings"

log "github.com/Sirupsen/logrus"
"github.com/emirpasic/gods/maps/hashmap"
"github.com/gin-gonic/gin"
cmodel "github.com/open-falcon/falcon-plus/common/model"
h "github.com/open-falcon/falcon-plus/modules/api/app/helper"
m "github.com/open-falcon/falcon-plus/modules/api/app/model/graph"
log "github.com/sirupsen/logrus"
)

type APIGrafanaMainQueryInputs struct {
Expand Down
2 changes: 1 addition & 1 deletion modules/api/app/controller/graph/graph_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ import (
"strings"
"time"

log "github.com/Sirupsen/logrus"
"github.com/gin-gonic/gin"
"github.com/jinzhu/gorm"
cmodel "github.com/open-falcon/falcon-plus/common/model"
h "github.com/open-falcon/falcon-plus/modules/api/app/helper"
m "github.com/open-falcon/falcon-plus/modules/api/app/model/graph"
"github.com/open-falcon/falcon-plus/modules/api/app/utils"
grh "github.com/open-falcon/falcon-plus/modules/api/graph"
log "github.com/sirupsen/logrus"
tcache "github.com/toolkits/cache/localcache/timedcache"
"net/http"
)
Expand Down
2 changes: 1 addition & 1 deletion modules/api/app/controller/host/aggreator_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ import (
"fmt"
"strconv"

log "github.com/Sirupsen/logrus"
"github.com/gin-gonic/gin"
"github.com/jinzhu/gorm"
h "github.com/open-falcon/falcon-plus/modules/api/app/helper"
f "github.com/open-falcon/falcon-plus/modules/api/app/model/falcon_portal"
log "github.com/sirupsen/logrus"
)

func GetAggregatorListOfGrp(c *gin.Context) {
Expand Down
2 changes: 1 addition & 1 deletion modules/api/app/controller/host/host_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ import (
"fmt"
"strconv"

log "github.com/Sirupsen/logrus"
"github.com/gin-gonic/gin"
h "github.com/open-falcon/falcon-plus/modules/api/app/helper"
f "github.com/open-falcon/falcon-plus/modules/api/app/model/falcon_portal"
u "github.com/open-falcon/falcon-plus/modules/api/app/utils"
log "github.com/sirupsen/logrus"
)

func GetHostBindToWhichHostGroup(c *gin.Context) {
Expand Down
2 changes: 1 addition & 1 deletion modules/api/app/controller/host/hostgroup_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ import (
"regexp"
"strconv"

log "github.com/Sirupsen/logrus"
"github.com/gin-gonic/gin"
"github.com/jinzhu/gorm"
h "github.com/open-falcon/falcon-plus/modules/api/app/helper"
f "github.com/open-falcon/falcon-plus/modules/api/app/model/falcon_portal"
u "github.com/open-falcon/falcon-plus/modules/api/app/utils"
log "github.com/sirupsen/logrus"
)

func GetHostGroups(c *gin.Context) {
Expand Down
2 changes: 1 addition & 1 deletion modules/api/app/controller/host/plugins_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ import (
"fmt"
"strconv"

log "github.com/Sirupsen/logrus"
"github.com/gin-gonic/gin"
h "github.com/open-falcon/falcon-plus/modules/api/app/helper"
f "github.com/open-falcon/falcon-plus/modules/api/app/model/falcon_portal"
log "github.com/sirupsen/logrus"
)

type APICreatePluginInput struct {
Expand Down
2 changes: 1 addition & 1 deletion modules/api/app/controller/template/template_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ import (
"fmt"
"strconv"

log "github.com/Sirupsen/logrus"
"github.com/gin-gonic/gin"
"github.com/jinzhu/gorm"
h "github.com/open-falcon/falcon-plus/modules/api/app/helper"
f "github.com/open-falcon/falcon-plus/modules/api/app/model/falcon_portal"
log "github.com/sirupsen/logrus"
)

type APIGetTemplatesOutput struct {
Expand Down
2 changes: 1 addition & 1 deletion modules/api/app/controller/uic/session_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ import (
"net/http"
"time"

log "github.com/Sirupsen/logrus"
"github.com/gin-gonic/gin"
h "github.com/open-falcon/falcon-plus/modules/api/app/helper"
"github.com/open-falcon/falcon-plus/modules/api/app/model/uic"
"github.com/open-falcon/falcon-plus/modules/api/app/utils"
log "github.com/sirupsen/logrus"
)

type APILoginInput struct {
Expand Down
2 changes: 1 addition & 1 deletion modules/api/app/controller/uic/team_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ import (
"net/http"
"strconv"

log "github.com/Sirupsen/logrus"
"github.com/gin-gonic/gin"
"github.com/jinzhu/gorm"
h "github.com/open-falcon/falcon-plus/modules/api/app/helper"
"github.com/open-falcon/falcon-plus/modules/api/app/model/uic"
"github.com/open-falcon/falcon-plus/modules/api/config"
log "github.com/sirupsen/logrus"
)

type CTeam struct {
Expand Down
2 changes: 1 addition & 1 deletion modules/api/app/controller/uic/user_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ import (
"strings"
"time"

log "github.com/Sirupsen/logrus"
"github.com/gin-gonic/gin"
"github.com/jinzhu/gorm"
h "github.com/open-falcon/falcon-plus/modules/api/app/helper"
"github.com/open-falcon/falcon-plus/modules/api/app/model/uic"
"github.com/open-falcon/falcon-plus/modules/api/app/utils"
log "github.com/sirupsen/logrus"
"github.com/spf13/viper"
)

Expand Down
2 changes: 1 addition & 1 deletion modules/api/app/helper/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (

"encoding/json"

log "github.com/Sirupsen/logrus"
log "github.com/sirupsen/logrus"

"github.com/gin-gonic/gin"
"github.com/open-falcon/falcon-plus/modules/api/app/model/uic"
Expand Down
2 changes: 1 addition & 1 deletion modules/api/app/helper/simple_reponse.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"encoding/json"
"net/http"

log "github.com/Sirupsen/logrus"
"github.com/gin-gonic/gin"
log "github.com/sirupsen/logrus"
"github.com/spf13/viper"
)

Expand Down
2 changes: 1 addition & 1 deletion modules/api/app/model/falcon_portal/tpl.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
package falcon_portal

import (
log "github.com/Sirupsen/logrus"
"github.com/open-falcon/falcon-plus/modules/api/app/model/uic"
con "github.com/open-falcon/falcon-plus/modules/api/config"
log "github.com/sirupsen/logrus"
)

type Template struct {
Expand Down
2 changes: 1 addition & 1 deletion modules/api/app/utils/auth_middle.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ package utils
import (
"net/http"

log "github.com/Sirupsen/logrus"
"github.com/gin-gonic/gin"
h "github.com/open-falcon/falcon-plus/modules/api/app/helper"
log "github.com/sirupsen/logrus"
"github.com/spf13/viper"
)

Expand Down
2 changes: 1 addition & 1 deletion modules/api/app/utils/passwd_hash.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
package utils

import (
log "github.com/Sirupsen/logrus"
log "github.com/sirupsen/logrus"
"github.com/spf13/viper"
"github.com/toolkits/str"
)
Expand Down
2 changes: 1 addition & 1 deletion modules/api/app/utils/set.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"strconv"
"strings"

log "github.com/Sirupsen/logrus"
log "github.com/sirupsen/logrus"
)

func UniqSet(list []interface{}) []interface{} {
Expand Down
2 changes: 1 addition & 1 deletion modules/api/config/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

package config

import log "github.com/Sirupsen/logrus"
import log "github.com/sirupsen/logrus"

func InitLog(level string) (err error) {
switch level {
Expand Down
2 changes: 1 addition & 1 deletion modules/api/graph/graph.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"strings"
"time"

log "github.com/Sirupsen/logrus"
log "github.com/sirupsen/logrus"

backend "github.com/open-falcon/falcon-plus/common/backend_pool"
cmodel "github.com/open-falcon/falcon-plus/common/model"
Expand Down
Loading

0 comments on commit 17dce73

Please sign in to comment.