1
This commit is contained in:
parent
5c863cbf5f
commit
e74afd7e45
@ -31,6 +31,8 @@ def run():
|
||||
for topic, msg in consumer():
|
||||
# print(msg)
|
||||
type_ = msg['#type']
|
||||
if msg['#app_id']!='c3e0409ac18341149877b08f087db640':
|
||||
print(msg)
|
||||
del msg['#type']
|
||||
ts = int(time.time())
|
||||
|
||||
|
@ -63,7 +63,7 @@ class Transmitter:
|
||||
else:
|
||||
# pass
|
||||
msg = traceback.format_exc()
|
||||
self.log.eror(msg)
|
||||
self.log.error(msg)
|
||||
finally:
|
||||
pass
|
||||
# print(f' {os.getpid()} 释放锁')
|
||||
@ -104,5 +104,5 @@ class Transmitter:
|
||||
self.set_event_attr(self.db_name, tb, data)
|
||||
self.__send(self.db_name, tb, [json.dumps(item) for item in data])
|
||||
except Exception as e:
|
||||
self.log.eror(e)
|
||||
self.log.error(e)
|
||||
buffer.clear()
|
||||
|
Loading…
Reference in New Issue
Block a user