mirror of
https://github.com/simon987/chan_feed.git
synced 2025-12-14 04:59:02 +00:00
misc fixes
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user