fix failing testLogError
Merge pull request #4373 from mstra001/master

fix failing testLogError