Giter VIP home page Giter VIP logo

Comments (6)

armink avatar armink commented on August 26, 2024

取消 ELOG_ASSERT(init_ok); 断言,或者你还有其他什么解决思路吗?

from easylogger.

z0306c avatar z0306c commented on August 26, 2024

取消 ELOG_ASSERT(init_ok); 断言,或者你还有其他什么解决思路吗?

我现在就是删掉这里的断言解决的,这里应该也不需要断言的吧

from easylogger.

armink avatar armink commented on August 26, 2024

或者就先改为下面方式吧,方便提个 pr 上来吗?

if (!init_ok) {
    return;
}

from easylogger.

z0306c avatar z0306c commented on August 26, 2024

或者就先改为下面方式吧,方便提个 pr 上来吗?

if (!init_ok) {
    return;
}

这种操作不行的。这样做,子线程就直接退出了,仍然会出现日志输出不完整的问题。这地方不需要对init_ok做判断,因为while循环里有sem_wait,如果没有内容需要输出,就自然等待了

from easylogger.

z0306c avatar z0306c commented on August 26, 2024

或者就先改为下面方式吧,方便提个 pr 上来吗?

if (!init_ok) {
    return;
}

已经提了一个PR给您

from easylogger.

armink avatar armink commented on August 26, 2024

好的,感谢你的贡献哈~~

from easylogger.

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.