Skip to content

Commit ee014d3

Browse files
committed
all prints are now behind the DEBUG flag
1 parent 63f2658 commit ee014d3

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

chisel-forward/client/client.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ func (c *Client) Start() error {
9696
if connerr != nil {
9797
connerr = nil
9898
d := b.Duration()
99-
fmt.Printf("Retrying in %s...\n", d)
99+
chisel.Printf("Retrying in %s...\n", d)
100100
time.Sleep(d)
101101
}
102102

@@ -124,11 +124,11 @@ func (c *Client) Start() error {
124124
markClosed := make(chan bool)
125125
var o sync.Once
126126
closed := func() {
127-
fmt.Printf("Disconnected\n")
127+
chisel.Printf("Disconnected\n")
128128
close(markClosed)
129129
}
130130

131-
fmt.Printf("Connected to %s\n", c.config.Server)
131+
chisel.Printf("Connected to %s\n", c.config.Server)
132132

133133
//poll state
134134
go func() {

chiseld/server/server.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ func NewServer(auth, proxy string) (*Server, error) {
3838

3939
func (s *Server) Start(host, port string) error {
4040
if s.auth != "" {
41-
fmt.Printf("Authenication enabled\n")
41+
chisel.Printf("Authenication enabled\n")
4242
}
4343
if s.proxy != nil {
44-
fmt.Printf("Default proxy enabled\n")
44+
chisel.Printf("Default proxy enabled\n")
4545
}
46-
fmt.Printf("Listening on %s...\n", port)
46+
chisel.Printf("Listening on %s...\n", port)
4747
return http.ListenAndServe(":"+port, http.HandlerFunc(s.handleHTTP))
4848
}
4949

0 commit comments

Comments
 (0)