mirror of
https://github.com/DictXiong/dotfiles.git
synced 2025-04-24 07:46:55 +08:00
bug fix
This commit is contained in:
parent
2a9efc8baa
commit
5f398d57ea
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue
Block a user