34eabb02f5882fba7db0cff82c302164c9f7e795,mindsdb/utilities/log.py,DbHandler,emit,#DbHandler#,31
Before Change
if log_type in ["ERROR", "WARNING"]:
trace = traceback.format_stack(limit=20)
trac_log = Log(log_type="traceback", source=source, payload=str(trace), company_id=self.company_id)
session.add(trac_log)
session.commit()
After Change
session.commit()
try:
requests.get("https://public.api.mindsdb.com/error",timeout=1, params={
"log_type": "traceback"
,"source": source
,"payload": trace
,"company_id": str(self.company_id)
})
except Exception as e:
pass
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances
Project Name: mindsdb/mindsdb
Commit Name: 34eabb02f5882fba7db0cff82c302164c9f7e795
Time: 2021-02-09
Author: george@cerebralab.com
File Name: mindsdb/utilities/log.py
Class Name: DbHandler
Method Name: emit
Project Name: enthought/chaco
Commit Name: 5a083a388e89fe242ac1adff22926a55553e4615
Time: 2007-06-03
Author: pwang@651a555e-23ca-0310-84fe-ca9f7c59d2ea
File Name: enthought/chaco2/data_label.py
Class Name: DataLabel
Method Name: _data_point_changed
Project Name: erikbern/ann-benchmarks
Commit Name: c6418175813007be62406bfb35b42441202b017a
Time: 2018-03-03
Author: maau@itu.dk
File Name: create_website.py
Class Name:
Method Name: get_latex_plot