Move "logger" package to under types, now that we have it.

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
pull/56/head
Brad Fitzpatrick 5 years ago committed by Brad Fitzpatrick
parent dec5d64593
commit 2896be60db

@ -18,10 +18,10 @@ import (
"time"
"golang.org/x/oauth2"
"tailscale.com/logger"
"tailscale.com/logtail/backoff"
"tailscale.com/tailcfg"
"tailscale.com/types/empty"
"tailscale.com/types/logger"
)
// TODO(apenwarr): eliminate the 'state' variable, as it's now obsolete.

@ -25,8 +25,8 @@ import (
"github.com/tailscale/wireguard-go/wgcfg"
"golang.org/x/crypto/nacl/box"
"golang.org/x/oauth2"
"tailscale.com/logger"
"tailscale.com/tailcfg"
"tailscale.com/types/logger"
"tailscale.com/version"
"tailscale.com/wgengine/filter"
)

@ -15,7 +15,7 @@ import (
"golang.org/x/crypto/curve25519"
"golang.org/x/crypto/nacl/box"
"tailscale.com/logger"
"tailscale.com/types/logger"
)
type Client struct {

@ -23,7 +23,7 @@ import (
"golang.org/x/crypto/curve25519"
"golang.org/x/crypto/nacl/box"
"tailscale.com/logger"
"tailscale.com/types/logger"
)
const magic = 0x44c55250 // "DERP" with a non-ASCII high-bit

@ -23,7 +23,7 @@ import (
"sync"
"tailscale.com/derp"
"tailscale.com/logger"
"tailscale.com/types/logger"
)
// Client is a DERP-over-HTTP client.

@ -10,7 +10,7 @@ import (
"time"
"github.com/tailscale/wireguard-go/wgcfg"
"tailscale.com/logger"
"tailscale.com/types/logger"
)
type Handle struct {

@ -22,9 +22,9 @@ import (
"github.com/klauspost/compress/zstd"
"tailscale.com/control/controlclient"
"tailscale.com/ipn"
"tailscale.com/logger"
"tailscale.com/logtail/backoff"
"tailscale.com/safesocket"
"tailscale.com/types/logger"
"tailscale.com/wgengine"
)

@ -14,10 +14,10 @@ import (
"github.com/tailscale/wireguard-go/wgcfg"
"tailscale.com/control/controlclient"
"tailscale.com/logger"
"tailscale.com/portlist"
"tailscale.com/tailcfg"
"tailscale.com/types/empty"
"tailscale.com/types/logger"
"tailscale.com/version"
"tailscale.com/wgengine"
"tailscale.com/wgengine/filter"

@ -13,7 +13,7 @@ import (
"log"
"time"
"tailscale.com/logger"
"tailscale.com/types/logger"
"tailscale.com/version"
)

@ -9,7 +9,7 @@ package monitor
import (
"time"
"tailscale.com/logger"
"tailscale.com/types/logger"
)
// Message represents a message returned from a connection.

@ -15,7 +15,7 @@ import (
"github.com/tailscale/wireguard-go/device"
"github.com/tailscale/wireguard-go/tun"
"github.com/tailscale/wireguard-go/wgcfg"
"tailscale.com/logger"
"tailscale.com/types/logger"
)
// For now this router only supports the userspace WireGuard implementations.

@ -7,7 +7,7 @@ package wgengine
import (
"github.com/tailscale/wireguard-go/device"
"github.com/tailscale/wireguard-go/tun"
"tailscale.com/logger"
"tailscale.com/types/logger"
)
type darwinRouter struct {

@ -9,7 +9,7 @@ package wgengine
import (
"github.com/tailscale/wireguard-go/device"
"github.com/tailscale/wireguard-go/tun"
"tailscale.com/logger"
"tailscale.com/types/logger"
)
func NewUserspaceRouter(logf logger.Logf, tunname string, dev *device.Device, tuntap tun.Device, netChanged func()) Router {

@ -7,7 +7,7 @@ package wgengine
import (
"github.com/tailscale/wireguard-go/device"
"github.com/tailscale/wireguard-go/tun"
"tailscale.com/logger"
"tailscale.com/types/logger"
)
type fakeRouter struct {

@ -19,7 +19,7 @@ import (
"github.com/tailscale/wireguard-go/tun"
"github.com/tailscale/wireguard-go/wgcfg"
"tailscale.com/atomicfile"
"tailscale.com/logger"
"tailscale.com/types/logger"
"tailscale.com/wgengine/monitor"
)

@ -10,7 +10,7 @@ import (
winipcfg "github.com/tailscale/winipcfg-go"
"github.com/tailscale/wireguard-go/device"
"github.com/tailscale/wireguard-go/tun"
"tailscale.com/logger"
"tailscale.com/types/logger"
)
type winRouter struct {

@ -8,7 +8,7 @@ import (
"fmt"
"runtime"
"tailscale.com/logger"
"tailscale.com/types/logger"
)
// RusagePrefixLog returns a Logf func wrapping the provided logf func that adds

@ -16,8 +16,8 @@ import (
"github.com/tailscale/wireguard-go/device"
"github.com/tailscale/wireguard-go/tun"
"github.com/tailscale/wireguard-go/wgcfg"
"tailscale.com/logger"
"tailscale.com/tailcfg"
"tailscale.com/types/logger"
"tailscale.com/wgengine/filter"
"tailscale.com/wgengine/magicsock"
"tailscale.com/wgengine/packet"

Loading…
Cancel
Save