- Less traceing.
This commit is contained in:
Frank
2020-09-19 23:52:17 +02:00
parent ca7f15e622
commit 19b870c038
+9 -9
View File
@@ -2867,7 +2867,7 @@ end
-- @param #string Event Event. -- @param #string Event Event.
-- @param #string To To state. -- @param #string To To state.
function OPSGROUP:onafterDead(From, Event, To) function OPSGROUP:onafterDead(From, Event, To)
self:I(self.lid..string.format("Group dead!")) self:T(self.lid..string.format("Group dead!"))
-- Delete waypoints so they are re-initialized at the next spawn. -- Delete waypoints so they are re-initialized at the next spawn.
self.waypoints=nil self.waypoints=nil
@@ -2908,7 +2908,7 @@ function OPSGROUP:onafterStop(From, Event, To)
end end
-- Debug output. -- Debug output.
self:I(self.lid.."STOPPED! Unhandled events, cleared scheduler and removed from database.") self:T(self.lid.."STOPPED! Unhandled events, cleared scheduler and removed from database.")
end end
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
@@ -3710,7 +3710,7 @@ function OPSGROUP:SwitchTACAN(Channel, Morse, UnitName, Band)
if self:IsInUtero() then if self:IsInUtero() then
self:I(self.lid..string.format("Switching TACAN to DEFAULT when group is spawned")) self:T(self.lid..string.format("Switching TACAN to DEFAULT when group is spawned"))
self:SetDefaultTACAN(Channel, Morse, UnitName, Band) self:SetDefaultTACAN(Channel, Morse, UnitName, Band)
elseif self:IsAlive() then elseif self:IsAlive() then
@@ -3763,7 +3763,7 @@ function OPSGROUP:SwitchTACAN(Channel, Morse, UnitName, Band)
self.tacan.On=true self.tacan.On=true
-- Debug info. -- Debug info.
self:I(self.lid..string.format("Switching TACAN to Channel %d%s Morse %s on unit %s", self.tacan.Channel, self.tacan.Band, tostring(self.tacan.Morse), self.tacan.BeaconName)) self:T(self.lid..string.format("Switching TACAN to Channel %d%s Morse %s on unit %s", self.tacan.Channel, self.tacan.Band, tostring(self.tacan.Morse), self.tacan.BeaconName))
else else
self:E(self.lid.."ERROR: Cound not set TACAN! Unit is not alive") self:E(self.lid.."ERROR: Cound not set TACAN! Unit is not alive")
@@ -3785,7 +3785,7 @@ function OPSGROUP:TurnOffTACAN()
self.tacan.BeaconUnit:CommandDeactivateBeacon() self.tacan.BeaconUnit:CommandDeactivateBeacon()
end end
self:I(self.lid..string.format("Switching TACAN OFF")) self:T(self.lid..string.format("Switching TACAN OFF"))
self.tacan.On=false self.tacan.On=false
end end
@@ -3899,7 +3899,7 @@ function OPSGROUP:SwitchICLS(Channel, Morse, UnitName)
self.icls.On=true self.icls.On=true
-- Debug info. -- Debug info.
self:I(self.lid..string.format("Switching ICLS to Channel %d Morse %s on unit %s", self.icls.Channel, tostring(self.icls.Morse), self.icls.BeaconName)) self:T(self.lid..string.format("Switching ICLS to Channel %d Morse %s on unit %s", self.icls.Channel, tostring(self.icls.Morse), self.icls.BeaconName))
else else
self:E(self.lid.."ERROR: Cound not set ICLS! Unit is not alive.") self:E(self.lid.."ERROR: Cound not set ICLS! Unit is not alive.")
@@ -3987,7 +3987,7 @@ function OPSGROUP:SwitchRadio(Frequency, Modulation)
self.radio.On=true self.radio.On=true
-- Debug info. -- Debug info.
self:I(self.lid..string.format("Switching radio to frequency %.3f MHz %s", self.radio.Freq, UTILS.GetModulationName(self.radio.Modu))) self:T(self.lid..string.format("Switching radio to frequency %.3f MHz %s", self.radio.Freq, UTILS.GetModulationName(self.radio.Modu)))
else else
self:E(self.lid.."ERROR: Cound not set Radio! Group is not alive or not in utero any more") self:E(self.lid.."ERROR: Cound not set Radio! Group is not alive or not in utero any more")
@@ -4061,7 +4061,7 @@ function OPSGROUP:SwitchFormation(Formation)
self.option.Formation=Formation self.option.Formation=Formation
-- Debug info. -- Debug info.
self:I(self.lid..string.format("Switching formation to %d", self.option.Formation)) self:T(self.lid..string.format("Switching formation to %d", self.option.Formation))
end end
@@ -4106,7 +4106,7 @@ function OPSGROUP:SwitchCallsign(CallsignName, CallsignNumber)
self.callsign.NumberGroup=CallsignNumber self.callsign.NumberGroup=CallsignNumber
-- Debug. -- Debug.
self:I(self.lid..string.format("Switching callsign to %d-%d", self.callsign.NumberSquad, self.callsign.NumberGroup)) self:T(self.lid..string.format("Switching callsign to %d-%d", self.callsign.NumberSquad, self.callsign.NumberGroup))
-- Give command to change the callsign. -- Give command to change the callsign.
self.group:CommandSetCallsign(self.callsign.NumberSquad, self.callsign.NumberGroup) self.group:CommandSetCallsign(self.callsign.NumberSquad, self.callsign.NumberGroup)