Giter Site home page Giter Site logo

Comments (5)

WebGuHui avatar WebGuHui commented on July 24, 2024

请问什么情况了

from badjs-report.

huangjiaxing avatar huangjiaxing commented on July 24, 2024

我也有这个问题,同一个错误会上报两次,是出于什么考虑

from badjs-report.

librajt avatar librajt commented on July 24, 2024

get请求主要为了使用gif图打点的方式方便上报。
被处理两遍,可能是为了上报 stack 之类的信息,所以分开成两条。但判断条件好像不完善。
纯猜测

from badjs-report.

loskael avatar loskael commented on July 24, 2024

@WebGuHui

1、问题 1 已经更新,参考 7f3737f

@WebGuHui @huangjiaxing @librajt
2、报两次的问题参考

level: 4, // 错误级别 1-debug 2-info 4-error
data.level = 2;
var newData = T.extend({}, data);
newData.level = 4;

这两次的日志包含的内容基本一致,区别是 msg 和 level,其中 level = 2 的日志是不入库的,可以从实时日志里面找到,而入库的信息里保留原来的 Error.stack 是必要的,事实上,这部分的处理交给服务器来做也是可以的,另外,这部分是 @caihuiji 加的,@caihuiji 来解释一下?

from badjs-report.

keminu avatar keminu commented on July 24, 2024

上报两次的问题有解决方式吗?

from badjs-report.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.