diff --git a/config/config_real.py b/config/config_real.py index 5694db3..8f0b6ab 100644 --- a/config/config_real.py +++ b/config/config_real.py @@ -3,5 +3,5 @@ # gameid,channel,event_type is_debug = True -My_influx = {'host': '10.10.3.19', 'port': 8086, 'username': 'miles', 'password': 'aspect', 'database': 'useronline'} +My_influx = {'host': '10.10.3.19', 'port': 8086, 'username': 'miles', 'password': 'aspect', 'database': 'real_data'} influx_meas = 'real_game_data' diff --git a/ops/myinflux.py b/ops/myinflux.py index 3bb9475..82c8876 100644 --- a/ops/myinflux.py +++ b/ops/myinflux.py @@ -16,6 +16,7 @@ class Myinflux: def _write(self, body): try: self.influxdb.write_points(body) + print(f"write {body} 2 influx!") return True except exceptions.InfluxDBClientError: log.error(f"write {body} to influx failed!", exc_info=True)