Skip to content

Commit

Permalink
feat: improve client logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ivynya committed Dec 26, 2023
1 parent 85cf2cc commit 2f8eeae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,10 @@ func read(c *websocket.Conn, done chan struct{}) {
log.Println("decode:", err)
return
}
log.Printf("recv: %s", req.Action)
log.Printf("recv: %s (tag %s)", req.Action, req.Tag)

switch req.Action {
case "generate":
log.Println("generate")
completion, err := generate(c, req)
if err != nil {
log.Println("generate:", err)
Expand Down

0 comments on commit 2f8eeae

Please sign in to comment.