fix debug logger output
add global switch of second_level_cache_enabled