Skip to content

a problem that looping traversal s_subscribers[i] in ulog_subscribe(). #22

@Jacky9966520

Description

@Jacky9966520

int main(){
ulog_init();

ULOG_SUBSCRIBE(A, ULOG_DEBUG); //threshold=101
ULOG_SUBSCRIBE(B, ULOG_WARNING); // threshold=103,current: s_lowest_log_level = 101
ULOG_SUBSCRIBE(A, ULOG_ERROR); // threshold=​104
....
}
When program executed ULOG_SUBSCRIBE(A, ULOG_ERROR); the value of s_lowest_log_level still equal to 101.It should equal to 103.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions