diff options
author | Jannik Schönartz | 2019-01-10 19:19:54 +0100 |
---|---|---|
committer | Jannik Schönartz | 2019-01-10 19:19:54 +0100 |
commit | 2b30a17683ab1fead94011064837f4bb9bb6c303 (patch) | |
tree | ef334f2a78502d84d44956a46d78b048eeac0630 | |
parent | Add tftp checks and code cleanup (diff) | |
download | bwlp-monitoring-2b30a17683ab1fead94011064837f4bb9bb6c303.tar.gz bwlp-monitoring-2b30a17683ab1fead94011064837f4bb9bb6c303.tar.xz bwlp-monitoring-2b30a17683ab1fead94011064837f4bb9bb6c303.zip |
Add filename to tftp log, to prevent log spam
-rwxr-xr-x | bwLpStatus.py | 2 |
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') |