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


                pass

            try:
                requests.get("https://public.api.mindsdb.com/error",timeout=1, params={
                    "log_type": log_type
                    ,"source": source
                    ,"payload": payload
                    ,"company_id": str(self.company_id)
                })
            except Exception as e:
                pass

        log = Log(log_type=str(log_type), source=source, payload=str(payload), company_id=self.company_id)
Italian Trulli
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: scikit-learn-contrib/categorical-encoding
Commit Name: 9da9c8edd24bede6eeeeea8739835ea53ca58cbc
Time: 2018-10-21
Author: jcastaldo08@gmail.com
File Name: category_encoders/one_hot.py
Class Name: OneHotEncoder
Method Name: reverse_dummies


Project Name: samuelclay/NewsBlur
Commit Name: f14de2403b7255d3703d0f558d481c164080fd1e
Time: 2010-09-16
Author: samuel@ofbrooklyn.com
File Name: utils/story_functions.py
Class Name:
Method Name: pre_process_story