Skip to content
This repository was archived by the owner on Jun 18, 2022. It is now read-only.

Commit

Permalink
Merge pull request #283 from leodotcloud/change_log_package
Browse files Browse the repository at this point in the history
Change log package
  • Loading branch information
Denise authored Jul 9, 2018
2 parents 7b2ef36 + 4c594fa commit 7feaf17
Show file tree
Hide file tree
Showing 51 changed files with 51 additions and 61 deletions.
2 changes: 1 addition & 1 deletion cloudprovider/cloud_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"path"
"time"

"github.com/leodotcloud/log"
"github.com/rancher/agent/core/hostinfo"
"github.com/rancher/agent/utilities/config"
"github.com/rancher/log"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion core/compute/compute.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ import (
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/network"
"github.com/docker/docker/client"
"github.com/leodotcloud/log"
"github.com/pkg/errors"
"github.com/rancher/agent/core/image"
"github.com/rancher/agent/core/progress"
"github.com/rancher/agent/model"
"github.com/rancher/agent/utilities/constants"
dutils "github.com/rancher/agent/utilities/docker"
"github.com/rancher/agent/utilities/utils"
"github.com/rancher/log"
"golang.org/x/net/context"
)

Expand Down
2 changes: 1 addition & 1 deletion core/compute/compute_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
"github.com/docker/docker/api/types/network"
"github.com/docker/docker/client"
"github.com/docker/go-connections/nat"
"github.com/leodotcloud/log"
"github.com/pkg/errors"
"github.com/rancher/agent/core/image"
"github.com/rancher/agent/core/progress"
Expand All @@ -23,6 +22,7 @@ import (
configuration "github.com/rancher/agent/utilities/config"
"github.com/rancher/agent/utilities/constants"
"github.com/rancher/agent/utilities/utils"
"github.com/rancher/log"
"golang.org/x/net/context"
)

Expand Down
2 changes: 1 addition & 1 deletion core/compute/compute_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ import (
"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/blkiodev"
"github.com/docker/docker/api/types/container"
"github.com/leodotcloud/log"
"github.com/nu7hatch/gouuid"
"github.com/rancher/agent/model"
"github.com/rancher/agent/utilities/config"
"github.com/rancher/agent/utilities/constants"
"github.com/rancher/agent/utilities/docker"
"github.com/rancher/agent/utilities/utils"
"github.com/rancher/log"
"golang.org/x/net/context"
"gopkg.in/check.v1"
)
Expand Down
2 changes: 1 addition & 1 deletion core/compute/compute_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ import (
"github.com/docker/docker/api/types/network"
"github.com/docker/docker/client"
"github.com/docker/go-connections/nat"
"github.com/leodotcloud/log"
"github.com/pkg/errors"
"github.com/rancher/agent/core/hostinfo"
"github.com/rancher/agent/core/storage"
"github.com/rancher/agent/model"
"github.com/rancher/agent/utilities/constants"
dutils "github.com/rancher/agent/utilities/docker"
"github.com/rancher/agent/utilities/utils"
"github.com/rancher/log"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion core/hostinfo/host_info.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package hostinfo

import (
"github.com/leodotcloud/log"
"github.com/pkg/errors"
"github.com/rancher/agent/model"
"github.com/rancher/agent/utilities/constants"
"github.com/rancher/log"
)

type Collector interface {
Expand Down
2 changes: 1 addition & 1 deletion core/hostinfo/key_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"os"
"path"

"github.com/leodotcloud/log"
"github.com/pkg/errors"
"github.com/rancher/agent/utilities/config"
"github.com/rancher/log"
)

type KeyCollector struct {
Expand Down
2 changes: 1 addition & 1 deletion core/marshaller/marshaller.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package marshaller
import (
"encoding/json"

"github.com/leodotcloud/log"
"github.com/pkg/errors"
"github.com/rancher/agent/utilities/constants"
"github.com/rancher/log"
)

func FromString(rawstring string) map[string]interface{} {
Expand Down
2 changes: 1 addition & 1 deletion core/ping/ping_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ import (

"github.com/docker/docker/api/types"
"github.com/docker/docker/client"
"github.com/leodotcloud/log"
"github.com/pkg/errors"
"github.com/rancher/agent/core/hostinfo"
"github.com/rancher/agent/model"
"github.com/rancher/agent/utilities/config"
"github.com/rancher/agent/utilities/constants"
"github.com/rancher/agent/utilities/utils"
revents "github.com/rancher/event-subscriber/events"
"github.com/rancher/log"
"github.com/shirou/gopsutil/disk"
"golang.org/x/net/context"
)
Expand Down
2 changes: 1 addition & 1 deletion core/progress/progress.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package progress
import (
"fmt"

"github.com/leodotcloud/log"
revents "github.com/rancher/event-subscriber/events"
"github.com/rancher/go-rancher/v2"
"github.com/rancher/log"
)

type Progress struct {
Expand Down
2 changes: 1 addition & 1 deletion core/storage/plugin_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
"strings"

"github.com/docker/go-connections/sockets"
"github.com/leodotcloud/log"
"github.com/pkg/errors"
"github.com/rancher/agent/model"
"github.com/rancher/log"
)

func CallRancherStorageVolumePlugin(volume model.Volume, action string, payload interface{}) (Response, error) {
Expand Down
2 changes: 1 addition & 1 deletion core/storage/volume.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ import (

"github.com/docker/docker/api/types"
engineCli "github.com/docker/docker/client"
"github.com/leodotcloud/log"
"github.com/patrickmn/go-cache"
"github.com/pkg/errors"
"github.com/rancher/agent/core/progress"
"github.com/rancher/agent/model"
"github.com/rancher/agent/utilities/constants"
"github.com/rancher/agent/utilities/utils"
"github.com/rancher/log"
"golang.org/x/net/context"
)

Expand Down
2 changes: 1 addition & 1 deletion events/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import (
"os"
"time"

"github.com/leodotcloud/log"
"github.com/pkg/errors"
"github.com/rancher/agent/handlers"
"github.com/rancher/agent/service/hostapi"
"github.com/rancher/agent/utilities/config"
revents "github.com/rancher/event-subscriber/events"
"github.com/rancher/log"
)

func Listen(eventURL, accessKey, secretKey string, workerCount int) error {
Expand Down
2 changes: 1 addition & 1 deletion handlers/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"time"

"github.com/docker/docker/api/types"
"github.com/leodotcloud/log"
goUUID "github.com/nu7hatch/gouuid"
"github.com/patrickmn/go-cache"
"github.com/pkg/errors"
Expand All @@ -15,6 +14,7 @@ import (
"github.com/rancher/agent/utilities/docker"
revents "github.com/rancher/event-subscriber/events"
"github.com/rancher/go-rancher/v2"
"github.com/rancher/log"
"golang.org/x/net/context"
)

Expand Down
2 changes: 1 addition & 1 deletion handlers/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import (
"time"

"github.com/docker/docker/api/types"
"github.com/leodotcloud/log"
"github.com/rancher/agent/utilities/docker"
revents "github.com/rancher/event-subscriber/events"
"github.com/rancher/event-subscriber/locks"
"github.com/rancher/go-rancher/v2"
"github.com/rancher/log"
"golang.org/x/net/context"
"gopkg.in/check.v1"
)
Expand Down
2 changes: 1 addition & 1 deletion handlers/compute.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"strings"

engineCli "github.com/docker/docker/client"
"github.com/leodotcloud/log"
"github.com/mitchellh/mapstructure"
cache "github.com/patrickmn/go-cache"
"github.com/pkg/errors"
Expand All @@ -15,6 +14,7 @@ import (
"github.com/rancher/agent/utilities/utils"
revents "github.com/rancher/event-subscriber/events"
"github.com/rancher/go-rancher/v2"
"github.com/rancher/log"
)

type ComputeHandler struct {
Expand Down
2 changes: 1 addition & 1 deletion handlers/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"

engineCli "github.com/docker/docker/client"
"github.com/leodotcloud/log"
"github.com/mitchellh/mapstructure"
"github.com/patrickmn/go-cache"
"github.com/pkg/errors"
Expand All @@ -15,6 +14,7 @@ import (
"github.com/rancher/agent/utilities/utils"
revents "github.com/rancher/event-subscriber/events"
"github.com/rancher/go-rancher/v2"
"github.com/rancher/log"
)

type StorageHandler struct {
Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import (
"fmt"
"os"

"github.com/leodotcloud/log"
logserver "github.com/leodotcloud/log/server"
"github.com/rancher/agent/cloudprovider"
"github.com/rancher/agent/events"
"github.com/rancher/agent/register"
"github.com/rancher/agent/utilities/config"
"github.com/rancher/log"
logserver "github.com/rancher/log/server"

_ "github.com/rancher/agent/cloudprovider/aliyun"
_ "github.com/rancher/agent/cloudprovider/aws"
Expand Down
2 changes: 1 addition & 1 deletion register/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import (
"strings"
"time"

"github.com/leodotcloud/log"
"github.com/pkg/errors"
"github.com/rancher/go-rancher/v2"
"github.com/rancher/log"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion service/hostapi/console/console.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"net"
"net/url"

"github.com/leodotcloud/log"
"github.com/rancher/agent/service/hostapi/auth"
"github.com/rancher/log"
"github.com/rancher/websocket-proxy/backend"
"github.com/rancher/websocket-proxy/common"
)
Expand Down
2 changes: 1 addition & 1 deletion service/hostapi/dockersocketproxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"net"
"net/url"

"github.com/leodotcloud/log"
"github.com/rancher/agent/service/hostapi/auth"
"github.com/rancher/log"
"github.com/rancher/websocket-proxy/backend"
"github.com/rancher/websocket-proxy/common"
)
Expand Down
2 changes: 1 addition & 1 deletion service/hostapi/dockersocketproxy/proxy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ import (
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/client"
"github.com/gorilla/websocket"
"github.com/leodotcloud/log"
"github.com/rancher/agent/service/hostapi/config"
"github.com/rancher/agent/service/hostapi/events"
"github.com/rancher/agent/service/hostapi/testutils"
"github.com/rancher/log"
"github.com/rancher/websocket-proxy/backend"
"github.com/rancher/websocket-proxy/proxy"
wsp_utils "github.com/rancher/websocket-proxy/testutils"
Expand Down
2 changes: 1 addition & 1 deletion service/hostapi/events/entry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/events"
"github.com/docker/docker/client"
"github.com/leodotcloud/log"
rclient "github.com/rancher/go-rancher/client"
"github.com/rancher/log"
)

func TestProcessDockerEvents(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion service/hostapi/events/event_router.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/events"
"github.com/docker/docker/client"
"github.com/leodotcloud/log"
"github.com/rancher/log"
)

const workerTimeout = 60 * time.Second
Expand Down
2 changes: 1 addition & 1 deletion service/hostapi/events/send_to_rancher_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"github.com/docker/distribution/context"
"github.com/docker/docker/api/types/events"
"github.com/docker/docker/client"
"github.com/leodotcloud/log"
"github.com/rancher/event-subscriber/locks"
rclient "github.com/rancher/go-rancher/client"
"github.com/rancher/log"
)

type SendToRancherHandler struct {
Expand Down
2 changes: 1 addition & 1 deletion service/hostapi/exec/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (

"github.com/docker/distribution/context"
"github.com/docker/docker/api/types"
"github.com/leodotcloud/log"
"github.com/rancher/agent/service/hostapi/auth"
"github.com/rancher/agent/service/hostapi/events"
"github.com/rancher/log"
"github.com/rancher/websocket-proxy/backend"
"github.com/rancher/websocket-proxy/common"
)
Expand Down
2 changes: 1 addition & 1 deletion service/hostapi/hostapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"time"

"github.com/golang/glog"
"github.com/leodotcloud/log"
"github.com/pkg/errors"
"github.com/rancher/agent/service/hostapi/config"
"github.com/rancher/agent/service/hostapi/console"
Expand All @@ -20,6 +19,7 @@ import (
"github.com/rancher/agent/service/hostapi/stats"
"github.com/rancher/agent/service/hostapi/util"
rclient "github.com/rancher/go-rancher/client"
"github.com/rancher/log"
"github.com/rancher/websocket-proxy/backend"
)

Expand Down
2 changes: 1 addition & 1 deletion service/hostapi/logs/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"strings"

"github.com/docker/docker/api/types"
"github.com/leodotcloud/log"
"github.com/rancher/agent/service/hostapi/auth"
"github.com/rancher/agent/service/hostapi/events"
"github.com/rancher/log"
"github.com/rancher/websocket-proxy/backend"
"github.com/rancher/websocket-proxy/common"
"golang.org/x/net/context"
Expand Down
2 changes: 1 addition & 1 deletion service/hostapi/logs/logs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ import (
"github.com/docker/docker/api/types/container"
docker "github.com/docker/docker/client"
"github.com/gorilla/websocket"
"github.com/leodotcloud/log"
"github.com/rancher/agent/service/hostapi/config"
"github.com/rancher/agent/service/hostapi/events"
"github.com/rancher/agent/service/hostapi/testutils"
"github.com/rancher/log"
"github.com/rancher/websocket-proxy/backend"
"github.com/rancher/websocket-proxy/proxy"
wsp_utils "github.com/rancher/websocket-proxy/testutils"
Expand Down
2 changes: 1 addition & 1 deletion service/hostapi/pkg/haproxy/haproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net"
"strings"

"github.com/leodotcloud/log"
"github.com/rancher/log"
)

type Stat map[string]string
Expand Down
2 changes: 1 addition & 1 deletion service/hostapi/proxy/io.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"io"

"github.com/leodotcloud/log"
"github.com/rancher/log"
"github.com/rancher/websocket-proxy/common"
)

Expand Down
Loading

0 comments on commit 7feaf17

Please sign in to comment.