Merge pull request #862 from argilo/log-timeout

Log the shutdown timeout if set
pull/863/head
Mark Jessop 2024-02-01 10:02:12 +10:30 zatwierdzone przez GitHub
commit a81094884f
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 5 dodań i 3 usunięć

Wyświetl plik

@ -765,9 +765,6 @@ def main():
)
args = parser.parse_args()
# Copy out timeout value, and convert to seconds,
_timeout = args.timeout * 60
# Copy out RS92 ephemeris value, if provided.
if args.ephemeris != "None":
rs92_ephemeris = args.ephemeris
@ -826,6 +823,11 @@ def main():
logging.getLogger("engineio").setLevel(logging.ERROR)
logging.getLogger("geventwebsocket").setLevel(logging.ERROR)
# Copy out timeout value, and convert to seconds.
if args.timeout > 0:
logging.info(f"Will shut down automatically after {args.timeout} minutes.")
_timeout = args.timeout * 60
# Check all the RS utilities exist.
logging.debug("Checking if required binaries exist")
if not check_rs_utils(config):