mirror of
https://github.com/DictXiong/dotfiles.git
synced 2025-04-24 21:46:52 +08:00
bug fix
This commit is contained in:
parent
2a9efc8baa
commit
5f398d57ea
|
@ -51,6 +51,10 @@ if __name__ == "__main__":
|
||||||
content = args.content
|
content = args.content
|
||||||
hostname = get_hostname()
|
hostname = get_hostname()
|
||||||
uuid = get_uuid()
|
uuid = get_uuid()
|
||||||
|
content=content.strip()
|
||||||
|
if not content:
|
||||||
|
print("error: empty log content")
|
||||||
|
exit(1)
|
||||||
resp = post_log(url, hostname, uuid, content)
|
resp = post_log(url, hostname, uuid, content)
|
||||||
if resp.status_code == 200:
|
if resp.status_code == 200:
|
||||||
print("200 ok")
|
print("200 ok")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user