This commit is contained in:
pengtao 2019-08-19 17:31:12 +08:00
parent b282849869
commit 4b41244947

View File

@ -4,7 +4,7 @@ from influxdb import InfluxDBClient, exceptions
from config.config_real import My_influx
log = logging.getLogger(__name__)
import pdb
class Myinflux:
def __init__(self):
@ -15,6 +15,7 @@ class Myinflux:
def _write(self, body):
try:
pdb.set_trace()
self.influxdb.write_points(body)
print(f"write {body} 2 influx!")
return True