Skip to content

Commit 8aef6cb

Browse files
committed
Replaced scion logger with log15
1 parent 268146d commit 8aef6cb

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

netcat/main.go

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@ import (
1212

1313
quic "github.com/lucas-clemente/quic-go"
1414
"github.com/netsec-ethz/scion-apps/lib/scionutil"
15-
"github.com/scionproto/scion/go/lib/log"
15+
scionlog "github.com/scionproto/scion/go/lib/log"
1616
"github.com/scionproto/scion/go/lib/snet"
1717
"github.com/scionproto/scion/go/lib/snet/squic"
18+
19+
log "github.com/inconshreveable/log15"
1820
)
1921

2022
func printUsage() {
@@ -31,19 +33,20 @@ func printUsage() {
3133
}
3234

3335
func main() {
34-
log.SetupLogConsole("debug")
36+
scionlog.SetupLogConsole("debug")
37+
3538
log.Debug("Launching netcat")
3639

3740
var (
38-
remoteAddressString string
39-
port uint16
40-
localAddrString string
41+
remoteAddressString string
42+
port uint16
43+
localAddrString string
4144

4245
quicTLSKeyPath string
4346
quicTLSCertificatePath string
44-
45-
extraByte bool
46-
listen bool
47+
48+
extraByte bool
49+
listen bool
4750
)
4851
flag.Usage = printUsage
4952
flag.StringVar(&remoteAddressString, "local", "", "Local address string")

0 commit comments

Comments
 (0)