log exit notices as info messages not warnings

This commit is contained in:
Mikayla Fischler 2022-04-29 13:20:56 -04:00
parent 84e7ad43bc
commit 3587352219
3 changed files with 9 additions and 9 deletions

View File

@ -168,7 +168,7 @@ function thread__main(smem, init)
if event == "terminate" or ppm.should_terminate() then if event == "terminate" or ppm.should_terminate() then
-- iss handles reactor shutdown -- iss handles reactor shutdown
plc_state.shutdown = true plc_state.shutdown = true
log._warning("terminate requested, main thread exiting") log._info("terminate requested, main thread exiting")
break break
end end
end end
@ -267,7 +267,7 @@ function thread__iss(smem)
-- check for termination request -- check for termination request
if plc_state.shutdown then if plc_state.shutdown then
-- safe exit -- safe exit
log._warning("iss thread shutdown initiated") log._info("iss thread shutdown initiated")
if plc_state.init_ok then if plc_state.init_ok then
plc_state.scram = true plc_state.scram = true
reactor.scram() reactor.scram()
@ -280,7 +280,7 @@ function thread__iss(smem)
log._error("iss thread failed to SCRAM reactor on exit") log._error("iss thread failed to SCRAM reactor on exit")
end end
end end
log._warning("iss thread exiting") log._info("iss thread exiting")
break break
end end
@ -331,7 +331,7 @@ function thread__comms_tx(smem)
-- check for termination request -- check for termination request
if plc_state.shutdown then if plc_state.shutdown then
log._warning("comms tx thread exiting") log._info("comms tx thread exiting")
break break
end end
@ -379,7 +379,7 @@ function thread__comms_rx(smem)
-- check for termination request -- check for termination request
if plc_state.shutdown then if plc_state.shutdown then
log._warning("comms rx thread exiting") log._info("comms rx thread exiting")
break break
end end

View File

@ -121,7 +121,7 @@ function thread__main(smem)
-- check for termination request -- check for termination request
if event == "terminate" or ppm.should_terminate() then if event == "terminate" or ppm.should_terminate() then
rtu_state.shutdown = true rtu_state.shutdown = true
log._warning("terminate requested, main thread exiting") log._info("terminate requested, main thread exiting")
break break
end end
end end
@ -169,7 +169,7 @@ function thread__comms(smem)
-- check for termination request -- check for termination request
if rtu_state.shutdown then if rtu_state.shutdown then
log._warning("comms thread exiting") log._info("comms thread exiting")
break break
end end
@ -218,7 +218,7 @@ function thread__unit_comms(smem, unit)
-- check for termination request -- check for termination request
if rtu_state.shutdown then if rtu_state.shutdown then
log._warning("rtu unit thread exiting -> " .. unit.name .. "(" .. unit.type .. ")") log._info("rtu unit thread exiting -> " .. unit.name .. "(" .. unit.type .. ")")
break break
end end

View File

@ -100,7 +100,7 @@ while true do
-- check for termination request -- check for termination request
if event == "terminate" or ppm.should_terminate() then if event == "terminate" or ppm.should_terminate() then
log._warning("terminate requested, exiting...") log._info("terminate requested, exiting...")
break break
end end
end end