armink / EasyLogger

An ultra-lightweight(ROM<1.6K, RAM<0.3k), high-performance C/C++ log library. | 一款超轻量级(ROM<1.6K, RAM<0.3k)、高性能的 C/C++ 日志库

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

在关闭OUTPUT_LOCK的情况下依然会调用elog_port_output_lock函数

675658 opened this issue · comments

在elog.c中的elog_get_filter_tag_lvl函数以及elog_set_filter_tag_lvl函数中错误地使用了elog_port_output_lock函数导致在关闭output lock的情况下仍然会锁定输出却无法解锁
复现:

#include "elog.h"

int main()
{
    elog_init();
    elog_start();
    elog_set_output_enabled(ENABLE);
    elog_output_lock_enabled(DISABLE);

    log_i("This is a message");
}