Fix logger option

Tests fails and I don't know how to fix them