Fixes #5686: Replicate #5320 in logger_rudder

http://www.rudder-project.org/redmine/issues/5686