Add print for log debug
This commit is contained in:
parent
7e02c0ad78
commit
34c71dce65
1 changed files with 4 additions and 3 deletions
3
main.py
3
main.py
|
@ -139,6 +139,7 @@ def main():
|
|||
if speedtest.returncode == 0: # Speedtest was successful.
|
||||
data = format_for_influx(speedtest.stdout)
|
||||
print("Speedtest Successful :")
|
||||
print(speedtest.stdout)
|
||||
if influxdb_client.write_points(data) == True:
|
||||
print("Data written to DB successfully")
|
||||
time.sleep(TEST_INTERVAL)
|
||||
|
@ -150,5 +151,5 @@ def main():
|
|||
|
||||
|
||||
if __name__ == '__main__':
|
||||
print('Speedtest CLI Data Logger to InfluxDB')
|
||||
print('Speedtest CLI data logger to InfluxDB started...')
|
||||
main()
|
||||
|
|
Loading…
Reference in a new issue