tfabris / CrowCam

A set of Bash scripts to control and maintain a YouTube live cam from a Synology NAS.
GNU General Public License v3.0
4 stars 3 forks source link

Logging of network downage isn't quite right. #16

Closed tfabris closed 5 years ago

tfabris commented 5 years ago

On 2019-04-11, after deliberately rebooting my router, I saw the Synology logs of the CrowCam trying to fix the stream. Everything worked but one of the log entries was unexpected.

Instead of seeing a network error first, I saw the messages in this order:

2019/04/11 17:56:13 SYSTEM CrowCam Controller - Pausing 10 seconds to wait for network to come back up. Inner restore attempt loop 1 of 40. Info System

2019/04/11 17:56:13 SYSTEM CrowCam Controller - Status - Network up: false - Network problem during outer network test loop 6 of 6. Info System

tfabris commented 5 years ago

Issue was that Synology got the messages out of order because they came so close together. Fix the problem by making them the same message instead of two quick ones in succession.