Fix the bug in the setup_remote_syslog() API