This commit is contained in:
Dict Xiong 2022-08-07 14:27:58 +08:00
parent 2a9efc8baa
commit 5f398d57ea

View File

@ -51,6 +51,10 @@ if __name__ == "__main__":
content = args.content
hostname = get_hostname()
uuid = get_uuid()
content=content.strip()
if not content:
print("error: empty log content")
exit(1)
resp = post_log(url, hostname, uuid, content)
if resp.status_code == 200:
print("200 ok")