Upgrade logs (#1495)

## Issue Addressed

#1483 

## Proposed Changes

Upgrades the log to a critical if a listener fails. We are able to listen on many interfaces so a single instance is not critical. We should however gracefully shutdown the client if we have no listeners, although the client can still function solely on outgoing connections.

For now a critical is raised and I leave #1494 for more sophisticated handling of this. 

This also updates discv5 to handle errors of binding to a UDP socket such that lighthouse is now able to handle them.
This commit is contained in:
Age Manning
2020-08-10 05:19:51 +00:00
parent 04e4389efe
commit cbfae87aa6
6 changed files with 11 additions and 8 deletions

4
Cargo.lock generated
View File

@@ -1195,9 +1195,9 @@ checksum = "212d0f5754cb6769937f4501cc0e67f4f4483c8d2c3e1e922ee9edbe4ab4c7c0"
[[package]]
name = "discv5"
version = "0.1.0-alpha.7"
version = "0.1.0-alpha.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d7083584562c5b36f929dbe621437a911eef4f8ac73bab1b1c64c8f556212943"
checksum = "90782d49541b01f9b7e34e6af5d80d01396bf7b1a81505a0035da224134b8d73"
dependencies = [
"arrayvec",
"digest 0.8.1",