summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJannik Schönartz2019-01-10 19:19:54 +0100
committerJannik Schönartz2019-01-10 19:19:54 +0100
commit2b30a17683ab1fead94011064837f4bb9bb6c303 (patch)
treeef334f2a78502d84d44956a46d78b048eeac0630
parentAdd tftp checks and code cleanup (diff)
downloadbwlp-monitoring-2b30a17683ab1fead94011064837f4bb9bb6c303.tar.gz
bwlp-monitoring-2b30a17683ab1fead94011064837f4bb9bb6c303.tar.xz
bwlp-monitoring-2b30a17683ab1fead94011064837f4bb9bb6c303.zip
Add filename to tftp log, to prevent log spam
-rwxr-xr-xbwLpStatus.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bwLpStatus.py b/bwLpStatus.py
index 076f879..67e6531 100755
--- a/bwLpStatus.py
+++ b/bwLpStatus.py
@@ -101,7 +101,7 @@ def https(name, url):
def tftp(name, host, port, filename):
print('TFTP request ' + host + ' ...', end='')
- hostname = host + ':' + str(port)
+ hostname = host + ':' + str(port) + ':' + filename
try:
client = tftpy.TftpClient(host, port)
client.download(filename, 'tmp_tftp_file')