readd debug-msgs to logger