fact-project / shifthelper

So we can sleep at night.
4 stars 0 forks source link

was called as fallback. Don't get the reason ... #227

Closed dneise closed 7 years ago

dneise commented 7 years ago

this morning I was called ... don't really get it .. and have to go soon. Nearly forgot to report it ... so here just the part from the log of that time ... [for privacy I removed the numbers of me and dbaack]

shifthelper_1               | 2017-03-17 05:59:08,059 - DEBUG - shifthelper.conditions - log_call_and_result - is_20minutes_or_less_before_shutdown -> True
shifthelper_1               | 2017-03-17 05:59:08,107 - DEBUG - shifthelper.conditions - log_call_and_result - is_nobody_awake -> True
shifthelper_1               | 2017-03-17 05:59:08,150 - DEBUG - shifthelper.checks - message_level - Giving message status WARNING
shifthelper_1               | 2017-03-17 05:59:08,192 - DEBUG - shifthelper.notifiers - handle_message - Got a message
shifthelper_1               | 2017-03-17 05:59:08,192 - DEBUG - shifthelper.notifiers - handle_message - Message is over alert level
shifthelper_1               | 2017-03-17 05:59:08,193 - DEBUG - shifthelper.notifiers - get_numbers_to_call - Getting phone number of primary shifter
shifthelper_1               | 2017-03-17 05:59:08,208 - DEBUG - shifthelper.tools.shift - get_current_shifter - Found shifter dbaack
shifthelper_1               | 2017-03-17 05:59:08,208 - DEBUG - shifthelper.notifiers - get_numbers_to_call - Getting phone number of fallback shifter
shifthelper_1               | 2017-03-17 05:59:08,208 - INFO - shifthelper.notifiers - handle_message - Calling <dbaacks number removed by me>
shifthelper_1               | 2017-03-17 05:59:08,208 - DEBUG - custos.notify.twilio - notify - Received message
shifthelper_1               | 2017-03-17 05:59:08,209 - DEBUG - custos.notify.twilio - notify - Placing call
shifthelper_1               | 2017-03-17 05:59:09,055 - INFO - shifthelper.notifiers - handle_message - Calling <dneises number removed by me>
shifthelper_1               | 2017-03-17 05:59:09,055 - DEBUG - custos.notify.twilio - notify - Received message
shifthelper_1               | 2017-03-17 05:59:09,056 - DEBUG - custos.notify.twilio - notify - Placing call
shifthelper_1               | 2017-03-17 05:59:09,784 - DEBUG - shifthelper.tools.shift - get_current_shifter - Found shifter dbaack
shifthelper_1               | 2017-03-17 05:59:09,949 - WARNING - custos.notify.log - notify - Check: IsUserAwakeBeforeShutdown - Message: There is a shift at the moment and
shifthelper_1               | 20min before shutdown and
shifthelper_1               | Parker not Awake
shifthelper_1               | 2017-03-17 05:59:22,636 - DEBUG - shifthelper.conditions - log_call_and_result - is_dummy_alert_by_shifter -> None
maxnoe commented 7 years ago

This was the broken alert acknowledge logic, #234 fixed this.