add more logging

This commit is contained in:
Jeremy Latt
2014-02-13 18:59:45 -08:00
parent b6a7d98b64
commit b8bbc7eeb5
3 changed files with 27 additions and 6 deletions
+2 -2
View File
@@ -52,7 +52,7 @@ func NewServer(config *Config) *Server {
func (server *Server) receiveCommands(commands <-chan Command) {
for command := range commands {
if DEBUG_SERVER {
log.Printf("%s → %s %s", command.Client(), server, command)
log.Printf("%s → %s %+v", command.Client(), server, command)
}
client := command.Client()
@@ -65,7 +65,7 @@ func (server *Server) receiveCommands(commands <-chan Command) {
command.HandleServer(server)
if DEBUG_SERVER {
log.Printf("%s → %s %s processed", command.Client(), server, command)
log.Printf("%s → %s %+v processed", command.Client(), server, command)
}
}
}