This commit is contained in:
kf_wuhao 2021-01-11 20:35:05 +08:00
parent 1c5e0ad9e4
commit a45b94687f

View File

@ -48,7 +48,7 @@ class SummaryFunc(Task):
bulk_data.append(UpdateOne({'_id': data['_id']}, {'$set': data}, upsert=True)) bulk_data.append(UpdateOne({'_id': data['_id']}, {'$set': data}, upsert=True))
except Exception as e: except Exception as e:
msg = traceback.format_exc() msg = traceback.format_exc()
ddsend_msg(f'ftype {item["ftype"]} 字段异常 {msg}') ddsend_msg(f'{self.game_name} {source_coll} 功能 {item["ftype"]} 字段异常 {msg}')
logger.error(f'ftype {item["ftype"]} 字段异常 {msg}') logger.error(f'ftype {item["ftype"]} 字段异常 {msg}')
if bulk_data: if bulk_data:
self.local_db[self.dest_coll].bulk_write(bulk_data, ordered=False) self.local_db[self.dest_coll].bulk_write(bulk_data, ordered=False)