automated terminal push
This commit is contained in:
@@ -22,7 +22,6 @@ def ip():
|
||||
|
||||
return None
|
||||
|
||||
|
||||
def hostname():
|
||||
|
||||
try:
|
||||
@@ -56,13 +55,15 @@ def addDownloadSuccess(url):
|
||||
print(response.text)
|
||||
|
||||
|
||||
def addDownloadFailure(url):
|
||||
def addDownloadFailure(url, error):
|
||||
|
||||
print("enter -> addDownloadFailure()")
|
||||
|
||||
print("param / url / ",url)
|
||||
|
||||
print("param / error / ",error)
|
||||
|
||||
data = {"url": url, "hostIP": ip(),"ip": ip(),"hostName":hostname()}
|
||||
data = {"url": url, "hostIP": ip(),"ip": ip(),"hostName":hostname(), "reason":error}
|
||||
|
||||
json_data = json.dumps(data)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user