log.warn returns a DeprecationWarning

This commit is contained in:
iRaven 2024-04-18 22:18:25 -05:00
parent bcc2e54da6
commit bb20548f91

View File

@ -96,7 +96,7 @@ def main(): # Main method to be looped.
log.info("Checking for a response (pinging "+cfg["server"]+")...")
healthcheck()
if healthstatus == "ok":
log.warn("ONT responded after a fail, deploying payload!")
log.warning("ONT responded after a fail, deploying payload!")
healthpassing == True
time.sleep(10) # Wait 10 seconds for the ONT to fully boot up and start sshd.
deploy()