degrade log 403 to warning (#17)

This commit is contained in:
Dict Xiong 2022-10-27 22:57:53 +08:00 committed by GitHub
parent 83695d48fb
commit 9778c69d78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,7 +63,7 @@ if __name__ == "__main__":
logging.info("200 ok")
exit(0)
elif resp.status_code == 403:
logging.error("403 forbidden")
logging.warning("403 forbidden")
logging.info("you may need to register your hostname and uuid")
logging.info(f"hostname: {hostname}, uuid: {uuid}")
exit(0)