Ok, got it:

We run osmo_init_logging() in OsmoPCU tests but by that time 
rate_ctr_group_alloc()
is already called from BTS singleton constructor.
Calling osmo_init_logging()from there is not an option as we won't have logging
levels set properly - see

https://gerrit.osmocom.org/4411

for details.

Shall I move rate-ctr related code outside of singleton? Is there better 
solution?

-- 
Max Suraev <[email protected]> http://www.sysmocom.de/
======================================================================= 
* sysmocom - systems for mobile communications GmbH
* Alt-Moabit 93 
* 10559 Berlin, Germany
* Sitz / Registered office: Berlin, HRB 134158 B 
* Geschaeftsfuehrer / Managing Director: Harald Welte 




Reply via email to