Skip to content

Commit da17824

Browse files
author
Matthew Fisher
committed
fix(logger): don't print a message on every incoming message
For example, if we receive a message from deis-logger itself, it will print it, which will then log it, then print, then log... You get the idea.
1 parent 98d979d commit da17824

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

logger/syslogd/syslogd.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,11 @@ func (h *handler) mainLoop() {
8484
if m == nil {
8585
break
8686
}
87-
fmt.Println(m)
8887
err := writeToDisk(m)
8988
if err != nil {
9089
panic(err)
9190
}
9291
}
93-
fmt.Println("Exit handler")
9492
h.End()
9593
}
9694

@@ -106,7 +104,6 @@ func main() {
106104
<-sc
107105

108106
// Shutdown the server
109-
fmt.Println("Shutdown the server...")
107+
fmt.Println("Shutting down...")
110108
s.Shutdown()
111-
fmt.Println("Server is down")
112109
}

0 commit comments

Comments
 (0)