Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 0
Enhance logging #14
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
Activity
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
The only logging we currently have is for tracking connects/disconnects for websockets. We should add some for game events.
We currently have logging for:
main.goplayer.go: ServeRegister()admin.go: ServeRegister()socket.go: ServeHTTP/ServeViewerEvents to log
Tasks
We can use the library
log/slogto handle this. UseINFO, notDEBUGfor messages that aren't errors/warnings.game.state = <value>) togame.SetState(<value>)