mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-09-20 22:37:44 +00:00
Better logging on telnet disconnect
This commit is contained in:
@@ -93,6 +93,15 @@ class DXCluster(SpotProvider):
|
|||||||
self.last_update_time = datetime.now(pytz.UTC)
|
self.last_update_time = datetime.now(pytz.UTC)
|
||||||
logging.debug("Data received from DX Cluster " + self._hostname + ".")
|
logging.debug("Data received from DX Cluster " + self._hostname + ".")
|
||||||
|
|
||||||
|
except EOFError:
|
||||||
|
connected = False
|
||||||
|
if self._running:
|
||||||
|
self.status = "Restarting"
|
||||||
|
logging.warning("Disconnected from DX Cluster " + self._hostname + ". Reconnecting...")
|
||||||
|
sleep(5)
|
||||||
|
else:
|
||||||
|
logging.info("DX Cluster " + self._hostname + " shutting down...")
|
||||||
|
self.status = "Shutting down"
|
||||||
except Exception:
|
except Exception:
|
||||||
connected = False
|
connected = False
|
||||||
if self._running:
|
if self._running:
|
||||||
|
|||||||
@@ -80,6 +80,15 @@ class RBN(SpotProvider):
|
|||||||
self.last_update_time = datetime.now(pytz.UTC)
|
self.last_update_time = datetime.now(pytz.UTC)
|
||||||
logging.debug("Data received from RBN on port " + str(self._port) + ".")
|
logging.debug("Data received from RBN on port " + str(self._port) + ".")
|
||||||
|
|
||||||
|
except EOFError:
|
||||||
|
connected = False
|
||||||
|
if self._running:
|
||||||
|
self.status = "Restarting"
|
||||||
|
logging.warning("Disconnected from RBN provider (port " + str(self._port) + "). Reconnecting...")
|
||||||
|
sleep(5)
|
||||||
|
else:
|
||||||
|
logging.info("RBN provider (port " + str(self._port) + ") shutting down...")
|
||||||
|
self.status = "Shutting down"
|
||||||
except Exception:
|
except Exception:
|
||||||
connected = False
|
connected = False
|
||||||
if self._running:
|
if self._running:
|
||||||
|
|||||||
@@ -76,7 +76,7 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="/static/js/add-spot.js?v=1786774296"></script>
|
<script src="/static/js/add-spot.js?v=1786774305"></script>
|
||||||
<script>$(document).ready(function () {
|
<script>$(document).ready(function () {
|
||||||
$("#nav-link-add-spot").addClass("active");
|
$("#nav-link-add-spot").addClass("active");
|
||||||
}); <!-- highlight active page in nav --></script>
|
}); <!-- highlight active page in nav --></script>
|
||||||
|
|||||||
@@ -82,7 +82,7 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="/static/js/alerts.js?v=1786774296"></script>
|
<script src="/static/js/alerts.js?v=1786774305"></script>
|
||||||
<script>$(document).ready(function () {
|
<script>$(document).ready(function () {
|
||||||
$("#nav-link-alerts").addClass("active");
|
$("#nav-link-alerts").addClass("active");
|
||||||
}); <!-- highlight active page in nav --></script>
|
}); <!-- highlight active page in nav --></script>
|
||||||
|
|||||||
@@ -79,8 +79,8 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="/static/js/spotsbandsandmap.js?v=1786774296"></script>
|
<script src="/static/js/spotsbandsandmap.js?v=1786774305"></script>
|
||||||
<script src="/static/js/bands.js?v=1786774296"></script>
|
<script src="/static/js/bands.js?v=1786774305"></script>
|
||||||
<script>$(document).ready(function () {
|
<script>$(document).ready(function () {
|
||||||
$("#nav-link-bands").addClass("active");
|
$("#nav-link-bands").addClass("active");
|
||||||
}); <!-- highlight active page in nav --></script>
|
}); <!-- highlight active page in nav --></script>
|
||||||
|
|||||||
+5
-5
@@ -1,6 +1,6 @@
|
|||||||
{% extends "skeleton.html" %}
|
{% extends "skeleton.html" %}
|
||||||
{% block head_extra %}
|
{% block head_extra %}
|
||||||
<link rel="stylesheet" href="/static/css/style.css?v=1786774296" type="text/css">
|
<link rel="stylesheet" href="/static/css/style.css?v=1786774305" type="text/css">
|
||||||
<link href="/static/vendor/css/bootstrap-5.3.8.min.css" rel="stylesheet">
|
<link href="/static/vendor/css/bootstrap-5.3.8.min.css" rel="stylesheet">
|
||||||
<link href="/static/vendor/css/fontawesome-6.7.2.min.css" rel="stylesheet">
|
<link href="/static/vendor/css/fontawesome-6.7.2.min.css" rel="stylesheet">
|
||||||
<link href="/static/vendor/css/solid-6.7.2.min.css" rel="stylesheet">
|
<link href="/static/vendor/css/solid-6.7.2.min.css" rel="stylesheet">
|
||||||
@@ -15,10 +15,10 @@
|
|||||||
window.fetchEventSource = fetchEventSource;
|
window.fetchEventSource = fetchEventSource;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script src="/static/js/utils.js?v=1786774296"></script>
|
<script src="/static/js/utils.js?v=1786774305"></script>
|
||||||
<script src="/static/js/ui-ham.js?v=1786774296"></script>
|
<script src="/static/js/ui-ham.js?v=1786774305"></script>
|
||||||
<script src="/static/js/geo.js?v=1786774296"></script>
|
<script src="/static/js/geo.js?v=1786774305"></script>
|
||||||
<script src="/static/js/common.js?v=1786774296"></script>
|
<script src="/static/js/common.js?v=1786774305"></script>
|
||||||
{% end %}
|
{% end %}
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
|||||||
@@ -284,7 +284,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="/static/vendor/js/chart-4.4.9.umd.min.js"></script>
|
<script src="/static/vendor/js/chart-4.4.9.umd.min.js"></script>
|
||||||
<script src="/static/js/conditions.js?v=1786774296"></script>
|
<script src="/static/js/conditions.js?v=1786774305"></script>
|
||||||
<script>$(document).ready(function () {
|
<script>$(document).ready(function () {
|
||||||
$("#nav-link-conditions").addClass("active");
|
$("#nav-link-conditions").addClass("active");
|
||||||
}); <!-- highlight active page in nav --></script>
|
}); <!-- highlight active page in nav --></script>
|
||||||
|
|||||||
+2
-2
@@ -112,8 +112,8 @@
|
|||||||
<script src="/static/vendor/js/leaflet-cqzones.js"></script>
|
<script src="/static/vendor/js/leaflet-cqzones.js"></script>
|
||||||
<script src="/static/vendor/js/leaflet-workedallbritainireland.js" type="module"></script>
|
<script src="/static/vendor/js/leaflet-workedallbritainireland.js" type="module"></script>
|
||||||
|
|
||||||
<script src="/static/js/spotsbandsandmap.js?v=1786774296"></script>
|
<script src="/static/js/spotsbandsandmap.js?v=1786774305"></script>
|
||||||
<script src="/static/js/map.js?v=1786774296"></script>
|
<script src="/static/js/map.js?v=1786774305"></script>
|
||||||
<script>$(document).ready(function () {
|
<script>$(document).ready(function () {
|
||||||
$("#nav-link-map").addClass("active");
|
$("#nav-link-map").addClass("active");
|
||||||
}); <!-- highlight active page in nav --></script>
|
}); <!-- highlight active page in nav --></script>
|
||||||
|
|||||||
@@ -118,8 +118,8 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="/static/js/spotsbandsandmap.js?v=1786774296"></script>
|
<script src="/static/js/spotsbandsandmap.js?v=1786774305"></script>
|
||||||
<script src="/static/js/spots.js?v=1786774296"></script>
|
<script src="/static/js/spots.js?v=1786774305"></script>
|
||||||
<script>$(document).ready(function () {
|
<script>$(document).ready(function () {
|
||||||
$("#nav-link-spots").addClass("active");
|
$("#nav-link-spots").addClass("active");
|
||||||
}); <!-- highlight active page in nav --></script>
|
}); <!-- highlight active page in nav --></script>
|
||||||
|
|||||||
@@ -86,7 +86,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="/static/js/status.js?v=1786774296"></script>
|
<script src="/static/js/status.js?v=1786774305"></script>
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$("#nav-link-status").addClass("active");
|
$("#nav-link-status").addClass("active");
|
||||||
|
|||||||
Reference in New Issue
Block a user