Skip to content

Commit

Permalink
Move log into common
Browse files Browse the repository at this point in the history
  • Loading branch information
DarienRaymond committed Sep 19, 2015
1 parent d03cac9 commit a887fd0
Show file tree
Hide file tree
Showing 15 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion common/io/encryption.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"crypto/cipher"
"io"

"github.com/v2ray/v2ray-core/log"
"github.com/v2ray/v2ray-core/common/log"
)

// CryptionReader is a general purpose reader that applies
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion config/json/json.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"path/filepath"

"github.com/v2ray/v2ray-core"
"github.com/v2ray/v2ray-core/log"
"github.com/v2ray/v2ray-core/common/log"
)

type ConnectionConfig struct {
Expand Down
2 changes: 1 addition & 1 deletion point.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package core

import (
"github.com/v2ray/v2ray-core/common/log"
v2net "github.com/v2ray/v2ray-core/common/net"
"github.com/v2ray/v2ray-core/log"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion proxy/freedom/freedom.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"net"

"github.com/v2ray/v2ray-core"
"github.com/v2ray/v2ray-core/common/log"
v2net "github.com/v2ray/v2ray-core/common/net"
"github.com/v2ray/v2ray-core/log"
)

type FreedomConnection struct {
Expand Down
2 changes: 1 addition & 1 deletion proxy/socks/protocol/socks.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"fmt"
"io"

"github.com/v2ray/v2ray-core/common/log"
v2net "github.com/v2ray/v2ray-core/common/net"
"github.com/v2ray/v2ray-core/log"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion proxy/socks/socks.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"strconv"

"github.com/v2ray/v2ray-core"
"github.com/v2ray/v2ray-core/common/log"
v2net "github.com/v2ray/v2ray-core/common/net"
"github.com/v2ray/v2ray-core/log"
protocol "github.com/v2ray/v2ray-core/proxy/socks/protocol"
)

Expand Down
4 changes: 2 additions & 2 deletions proxy/vmess/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"encoding/json"
"net"

"github.com/v2ray/v2ray-core/common/log"
v2net "github.com/v2ray/v2ray-core/common/net"
"github.com/v2ray/v2ray-core/log"
"github.com/v2ray/v2ray-core/proxy/vmess/protocol/user"
"github.com/v2ray/v2ray-core/proxy/vmess/protocol/user"
)

type VMessUser struct {
Expand Down
2 changes: 1 addition & 1 deletion proxy/vmess/protocol/user/id.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"crypto/md5"
"encoding/hex"

"github.com/v2ray/v2ray-core/log"
"github.com/v2ray/v2ray-core/common/log"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion proxy/vmess/protocol/user/userset.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"container/heap"
"time"

"github.com/v2ray/v2ray-core/log"
"github.com/v2ray/v2ray-core/common/log"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions proxy/vmess/protocol/vmess.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import (
"time"

v2io "github.com/v2ray/v2ray-core/common/io"
"github.com/v2ray/v2ray-core/common/log"
v2net "github.com/v2ray/v2ray-core/common/net"
"github.com/v2ray/v2ray-core/log"
"github.com/v2ray/v2ray-core/proxy/vmess/protocol/user"
"github.com/v2ray/v2ray-core/proxy/vmess/protocol/user"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion proxy/vmess/protocol/vmess_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"

v2net "github.com/v2ray/v2ray-core/common/net"
"github.com/v2ray/v2ray-core/proxy/vmess/protocol/user"
"github.com/v2ray/v2ray-core/proxy/vmess/protocol/user"
"github.com/v2ray/v2ray-core/testing/mocks"
"github.com/v2ray/v2ray-core/testing/unit"
)
Expand Down
4 changes: 2 additions & 2 deletions proxy/vmess/vmessin.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (

"github.com/v2ray/v2ray-core"
v2io "github.com/v2ray/v2ray-core/common/io"
"github.com/v2ray/v2ray-core/common/log"
v2net "github.com/v2ray/v2ray-core/common/net"
"github.com/v2ray/v2ray-core/log"
"github.com/v2ray/v2ray-core/proxy/vmess/protocol"
"github.com/v2ray/v2ray-core/proxy/vmess/protocol/user"
"github.com/v2ray/v2ray-core/proxy/vmess/protocol/user"
)

type VMessInboundHandler struct {
Expand Down
8 changes: 4 additions & 4 deletions proxy/vmess/vmessout.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ import (

"github.com/v2ray/v2ray-core"
v2io "github.com/v2ray/v2ray-core/common/io"
"github.com/v2ray/v2ray-core/common/log"
v2net "github.com/v2ray/v2ray-core/common/net"
"github.com/v2ray/v2ray-core/log"
"github.com/v2ray/v2ray-core/proxy/vmess/protocol"
"github.com/v2ray/v2ray-core/proxy/vmess/protocol/user"
"github.com/v2ray/v2ray-core/proxy/vmess/protocol/user"
)

// VNext is the next Point server in the connection chain.
type VNextServer struct {
Address v2net.Address // Address of VNext server
Users []user.User // User accounts for accessing VNext.
Address v2net.Address // Address of VNext server
Users []user.User // User accounts for accessing VNext.
}

type VMessOutboundHandler struct {
Expand Down
2 changes: 1 addition & 1 deletion release/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"fmt"

"github.com/v2ray/v2ray-core"
"github.com/v2ray/v2ray-core/common/log"
jsonconf "github.com/v2ray/v2ray-core/config/json"
"github.com/v2ray/v2ray-core/log"

// The following are neccesary as they register handlers in their init functions.
_ "github.com/v2ray/v2ray-core/proxy/freedom"
Expand Down

0 comments on commit a887fd0

Please sign in to comment.