Project

General

Profile

Actions

Bug #3409

closed

log level all is broken

Added by pespin almost 6 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
libosmocore
Target version:
-
Start date:
07/20/2018
Due date:
% Done:

100%

Spec Reference:

Description

I add the following LOG line to osmo-bts-trx:

LOGP(DL1P, LOGL_NOTICE, "bla");

If I use the following cfg file, the line doesn't show up:

log stderr
 logging filter all 1
 logging level all error
 logging level l1p notice
 logging level l1c error
 logging level trx error

However, if I change the log line in the code to be LOGL_ERROR, then it shows up.

So, in my opinion, parsing of commands should set the levels in the following way:
- First "logging level all error" is read, so all log categories are set to ERROR.
- Then "logging level l1p notice" is read, so this specific category level is overwritten and set to NOTICE.
- As a result, all log lines of L1P category with level NOTICE or ERROR are printed. Additionally, ERROR level for all categories is also printed.


Related issues

Related to libosmocore - Bug #71: Log target of everything is brokenResolvedneels

Actions
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)