Fixes #5686: Replicate #5320 in logger_rudder

http://www.rudder-project.org/redmine/issues/5686
https://docs.cfengine.com/docs/3.6/reference-promise-types-methods.html FTW !