fixed logging to remote (eg syslog) to *finally* have the right information in it