Logger: Fix level comparison