fix bug
This commit is contained in:
parent
b282849869
commit
4b41244947
@ -4,7 +4,7 @@ from influxdb import InfluxDBClient, exceptions
|
|||||||
from config.config_real import My_influx
|
from config.config_real import My_influx
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
import pdb
|
||||||
|
|
||||||
class Myinflux:
|
class Myinflux:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@ -15,6 +15,7 @@ class Myinflux:
|
|||||||
|
|
||||||
def _write(self, body):
|
def _write(self, body):
|
||||||
try:
|
try:
|
||||||
|
pdb.set_trace()
|
||||||
self.influxdb.write_points(body)
|
self.influxdb.write_points(body)
|
||||||
print(f"write {body} 2 influx!")
|
print(f"write {body} 2 influx!")
|
||||||
return True
|
return True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user