logger fixed. Empty messages won't be logged anymore