Skip to content

Commit

Permalink
Log to stdout by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
cyfdecyf committed Dec 25, 2012
1 parent cc590e3 commit 7383f2a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/shadowsocks-local/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ func handleConnection(conn net.Conn) {
go ss.Pipe(conn, remote, c)
go ss.Pipe(remote, conn, c)
<-c // close the other connection whenever one connection is closed
debug.Println("closing")
debug.Println("closing connection to", addr)
}

func run(port string) {
Expand All @@ -275,6 +275,8 @@ func enoughOptions(config *ss.Config) bool {
}

func main() {
log.SetOutput(os.Stdout)

var configFile, cmdServer string
var cmdConfig ss.Config
var printVer bool
Expand Down
2 changes: 2 additions & 0 deletions cmd/shadowsocks-server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,8 @@ var configFile string
var config *ss.Config

func main() {
log.SetOutput(os.Stdout)

var cmdConfig ss.Config
var printVer bool

Expand Down

0 comments on commit 7383f2a

Please sign in to comment.