misc fixes

This commit is contained in:
2019-09-06 08:59:39 -04:00
parent e4a2e59c22
commit 7a4c814408
4 changed files with 28 additions and 9 deletions

View File

@@ -1,5 +1,9 @@
import traceback
from influxdb import InfluxDBClient
from util import logger
client = InfluxDBClient("localhost", 8086, "root", "root", "chan_feed")
@@ -15,4 +19,8 @@ def init():
def log(event):
client.write_points(event)
try:
client.write_points(event)
except Exception as e:
logger.debug(traceback.format_exc())
logger.error(str(e))