mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-16 17:05:03 +01:00
Add config option to log outbound messages
This commit is contained in:
@@ -59,8 +59,10 @@ func (s *Session) Start() {
|
||||
|
||||
// QueueSend queues a packet (raw []byte) to be sent.
|
||||
func (s *Session) QueueSend(data []byte) {
|
||||
fmt.Printf("Sending To CharID: '%x'\n", s.charID)
|
||||
fmt.Printf("Sent Data:\n%s\n", hex.Dump(data))
|
||||
if s.server.erupeConfig.DevMode && s.server.erupeConfig.DevModeOptions.LogOutboundMessages {
|
||||
fmt.Printf("Sending To CharID: '%x'\n", s.charID)
|
||||
fmt.Printf("Sent Data:\n%s\n", hex.Dump(data))
|
||||
}
|
||||
|
||||
s.sendPackets <- data
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user