Added debug messages
continuous-integration/drone/push Build is passing Details

This commit is contained in:
kolaente 2019-09-03 22:16:28 +02:00
parent 1524bbaba5
commit b46f6df500
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 4 additions and 4 deletions

View File

@ -86,7 +86,7 @@ func (b *Broker) Start() {
// There is a new client attached and we
// want to start sending them messages.
b.clients[s] = true
log.Info("Added new client")
log.Debug("Added new client")
case s := <-b.defunctClients:
@ -95,7 +95,7 @@ func (b *Broker) Start() {
delete(b.clients, s)
close(s)
log.Info("Removed client")
log.Debug("Removed client")
case msg := <-b.messages:
@ -138,7 +138,7 @@ func (b *Broker) Serve(c echo.Context) error {
// Remove this client from the map of attached clients
// when `EventHandler` exits.
b.defunctClients <- messageChan
log.Info("HTTP connection closed.")
log.Debug("HTTP connection closed.")
}()
// Set the headers related to event streaming.
@ -174,7 +174,7 @@ func (b *Broker) Serve(c echo.Context) error {
}
// Done.
log.Info("Finished HTTP request")
log.Debug("Finished HTTP request")
return nil
}