Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qb_log_from_external_source incorrectly caches log level #28

Closed
beekhof opened this issue Jan 24, 2012 · 1 comment
Closed

qb_log_from_external_source incorrectly caches log level #28

beekhof opened this issue Jan 24, 2012 · 1 comment
Assignees

Comments

@beekhof
Copy link
Member

beekhof commented Jan 24, 2012

for(level = LOG_ERR; level < LOG_DEBUG; level++) {
    qb_log_from_external_source( __func__, __FILE__,  "I'm logging this at level %d", level, __LINE__, 0, level);
}

results in:

error: main: I'm logging this at level 3
error: main: I'm logging this at level 4
error: main: I'm logging this at level 5
error: main: I'm logging this at level 6

Looping the other way (level = LOG_TRACE) would result in nothing being printed unless tracing was enabled.

@ghost ghost assigned asalkeld Jan 24, 2012
@asalkeld
Copy link
Contributor

Fixed: 27d2b0a

chrissie-c pushed a commit that referenced this issue Aug 25, 2015
…unt.

Fixes: #28

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants