1
0
Fork 0

decrease logs output

This commit is contained in:
Maxim Kremenev 2014-07-15 10:42:06 +07:00 committed by Gregory Eremin
parent 00e4b4c82a
commit 4ba77f6631
1 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ func PublishHandler(w http.ResponseWriter, r *http.Request) {
queueName := r.FormValue("queue")
go Register(queueName, msg)
Log("Published message of %d bytes to queue %s", len(msg), queueName)
Debug("Published message of %d bytes to queue %s", len(msg), queueName)
w.Write([]byte("OK"))
}
@ -81,7 +81,7 @@ func SubscriptionHandler(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Queue", res.Queue)
w.Write(res.Message)
Log("Recieved message of %d bytes from queue %s", len(res.Message), res.Queue)
Debug("Recieved message of %d bytes from queue %s", len(res.Message), res.Queue)
finished <- true
}