Add print for log debug

This commit is contained in:
Luc VOISE 2020-10-16 17:20:09 +02:00
parent 7e02c0ad78
commit 34c71dce65

View file

@ -139,6 +139,7 @@ def main():
if speedtest.returncode == 0: # Speedtest was successful. if speedtest.returncode == 0: # Speedtest was successful.
data = format_for_influx(speedtest.stdout) data = format_for_influx(speedtest.stdout)
print("Speedtest Successful :") print("Speedtest Successful :")
print(speedtest.stdout)
if influxdb_client.write_points(data) == True: if influxdb_client.write_points(data) == True:
print("Data written to DB successfully") print("Data written to DB successfully")
time.sleep(TEST_INTERVAL) time.sleep(TEST_INTERVAL)
@ -150,5 +151,5 @@ def main():
if __name__ == '__main__': if __name__ == '__main__':
print('Speedtest CLI Data Logger to InfluxDB') print('Speedtest CLI data logger to InfluxDB started...')
main() main()