From 2215691125293cceb34d19c35966d32c6ad49004 Mon Sep 17 00:00:00 2001 From: shoopea Date: Sun, 7 Nov 2021 20:10:41 +0800 Subject: [PATCH] more debug --- ttd.go | 10 +++++----- version.go | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/ttd.go b/ttd.go index e4c7472..c98b481 100644 --- a/ttd.go +++ b/ttd.go @@ -232,7 +232,7 @@ func (s *ServerTTD) Poll(stop chan struct{}) { Packet: p, } sp.Read(buffer[:p.PLength]) - //logInfoDebug("Server.Poll() : AdminPacketServerClientInfo :\n- ClientID: %d\n- Address: %s\n- Name: %s\n- Lang: %d\n- Date: %d\n- CompanyID: %d", sp.ClientID, sp.Address, sp.Name, sp.Lang, sp.Date, sp.CompanyID) + logInfoDebug("Server.Poll() : AdminPacketServerClientInfo :\n- ClientID: %d\n- Address: %s\n- Name: %s\n- Lang: %d\n- Date: %d\n- CompanyID: %d", sp.ClientID, sp.Address, sp.Name, sp.Lang, sp.Date, sp.CompanyID) clt := &ClientTTD{ ClientID: sp.ClientID, CompanyID: 255, @@ -316,7 +316,7 @@ func (s *ServerTTD) Poll(stop chan struct{}) { Packet: p, } sp.Read(buffer[:p.PLength]) - //logInfoDebug("Server.Poll() : PacketServerCompanyNew :\n- CompanyID: %d", sp.CompanyID) + logInfoDebug("Server.Poll() : PacketServerCompanyNew :\n- CompanyID: %d", sp.CompanyID) c := &CompanyTTD{ CompanyID: sp.CompanyID, FirstSeen: time.Now(), @@ -328,7 +328,7 @@ func (s *ServerTTD) Poll(stop chan struct{}) { Packet: p, } sp.Read(buffer[:p.PLength]) - //logInfoDebug("Server.Poll() : PacketServerCompanyInfo :\n- CompanyID: %d\n- Name: %s\n- President: %s\n- Protected: %t\n- Inauguration: %d\n- AI: %t", sp.CompanyID, sp.Name, sp.President, sp.Protected, sp.Inauguration, sp.AI) + logInfoDebug("Server.Poll() : PacketServerCompanyInfo :\n- CompanyID: %d\n- Name: %s\n- President: %s\n- Protected: %t\n- Inauguration: %d\n- AI: %t", sp.CompanyID, sp.Name, sp.President, sp.Protected, sp.Inauguration, sp.AI) c := &CompanyTTD{ CompanyID: sp.CompanyID, FirstSeen: time.Now(), @@ -347,7 +347,7 @@ func (s *ServerTTD) Poll(stop chan struct{}) { Packet: p, } sp.Read(buffer[:p.PLength]) - //logInfoDebug("Server.Poll() : PacketServerCompanyUpdate :\n- CompanyID: %d\n- Name: %s\n- President: %s\n- Protected: %t", sp.CompanyID, sp.Name, sp.President, sp.Protected) + logInfoDebug("Server.Poll() : PacketServerCompanyUpdate :\n- CompanyID: %d\n- Name: %s\n- President: %s\n- Protected: %t", sp.CompanyID, sp.Name, sp.President, sp.Protected) c := s.Status.Companies[sp.CompanyID] c.Name = sp.Name c.FirstSeen = time.Now() @@ -358,7 +358,7 @@ func (s *ServerTTD) Poll(stop chan struct{}) { Packet: p, } sp.Read(buffer[:p.PLength]) - //logInfoDebug("Server.Poll() : PacketServerCompanyRemove :\n- CompanyID: %d\n- Reason: %d", sp.CompanyID, sp.Reason) + logInfoDebug("Server.Poll() : PacketServerCompanyRemove :\n- CompanyID: %d\n- Reason: %d", sp.CompanyID, sp.Reason) bot.SendChat(cfg.Telegram.ChatID, fmt.Sprintf("Company #%d deleted (%s)", sp.CompanyID, s.Status.Companies[sp.CompanyID].Name)) delete(s.Status.Companies, sp.CompanyID) case AdminPacketServerChat: diff --git a/version.go b/version.go index c724a9a..12e0c2a 100644 --- a/version.go +++ b/version.go @@ -1,6 +1,6 @@ // Code generated by version.sh (@generated) DO NOT EDIT. package main -var githash = "63b7d31" -var buildstamp = "2021-11-06_16:52:50" -var commits = "164" -var version = "63b7d31-b164 - 2021-11-06_16:52:50" +var githash = "40df5ba" +var buildstamp = "2021-11-07_12:10:24" +var commits = "165" +var version = "40df5ba-b165 - 2021-11-07_12:10:24"