mirror of
https://github.com/craigerl/aprsd.git
synced 2024-11-25 09:28:38 -05:00
Compare commits
2 Commits
764730c123
...
29a60b7ed0
Author | SHA1 | Date | |
---|---|---|---|
29a60b7ed0 | |||
e8100d8777 |
@ -1,6 +1,15 @@
|
|||||||
CHANGES
|
CHANGES
|
||||||
=======
|
=======
|
||||||
|
|
||||||
|
v2.5.8
|
||||||
|
------
|
||||||
|
|
||||||
|
* Removed debug code
|
||||||
|
* Updated list-plugins
|
||||||
|
* Renamed virtualenv dir to .aprsd-venv
|
||||||
|
* Added unit tests for dev test-plugin
|
||||||
|
* Send Message command defaults to config
|
||||||
|
|
||||||
v2.5.7
|
v2.5.7
|
||||||
------
|
------
|
||||||
|
|
||||||
|
@ -47,6 +47,7 @@ def healthcheck(ctx, health_url, timeout):
|
|||||||
console.log(f"APRSD HealthCheck version: {aprsd.__version__}")
|
console.log(f"APRSD HealthCheck version: {aprsd.__version__}")
|
||||||
with console.status(f"APRSD HealthCheck version: {aprsd.__version__}") as status:
|
with console.status(f"APRSD HealthCheck version: {aprsd.__version__}") as status:
|
||||||
try:
|
try:
|
||||||
|
status.update(f"Contacting APRSD on {health_url}")
|
||||||
url = health_url
|
url = health_url
|
||||||
response = requests.get(url, timeout=timeout)
|
response = requests.get(url, timeout=timeout)
|
||||||
response.raise_for_status()
|
response.raise_for_status()
|
||||||
@ -54,11 +55,7 @@ def healthcheck(ctx, health_url, timeout):
|
|||||||
console.log(f"Failed to fetch healthcheck url '{url}' : '{ex}'")
|
console.log(f"Failed to fetch healthcheck url '{url}' : '{ex}'")
|
||||||
sys.exit(-1)
|
sys.exit(-1)
|
||||||
else:
|
else:
|
||||||
import time
|
status.update("Contacted APRSD. Parsing results.")
|
||||||
time.sleep(2)
|
|
||||||
status.update("PISS")
|
|
||||||
time.sleep(2)
|
|
||||||
|
|
||||||
stats = json.loads(response.text)
|
stats = json.loads(response.text)
|
||||||
email_thread_last_update = stats["stats"]["email"]["thread_last_update"]
|
email_thread_last_update = stats["stats"]["email"]["thread_last_update"]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user