Issue #8380 by cableman: Fixed issues with error emit from logger